• Python Docstring Generator

    • Link: https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring
    • For finding unique values in a pandas series:
    self.assertEqual( len(set(epics_data.issue_id)), len(set(output.issue_id)) )
    

    In the process of doing some testing and wanted to make sure all the issue ids in the input were in the output. The set() function creates a set of the unique values, effectively doing what a 'unique' function would be use for in this case.