MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / remove_duplicates

Method remove_duplicates

actions/sql_connector.py:212–218  ·  view source on GitHub ↗

Remove duplicate entries from the results CSV file.

(self)

Source from the content-addressed store, hash-verified

210 self.results = []
211
212 def remove_duplicates(self):
213 """
214 Remove duplicate entries from the results CSV file.
215 """
216 df = pd.read_csv(self.sqlfile)
217 df.drop_duplicates(inplace=True)
218 df.to_csv(self.sqlfile, index=False)
219
220if __name__ == "__main__":
221 shared_data = SharedData()

Callers 1

workerMethod · 0.95

Calls 1

read_csvMethod · 0.80

Tested by

no test coverage detected