add duplicates count
This commit is contained in:
@@ -57,6 +57,8 @@ df = df[["_id", "classificationResult", "calculatedRatio", "deviceId", "deviceRa
|
|||||||
df_count = df.groupby(["classificationResult"]).describe()["calculatedRatio"]["count"]
|
df_count = df.groupby(["classificationResult"]).describe()["calculatedRatio"]["count"]
|
||||||
print(df.groupby(["classificationResult"]).describe()["calculatedRatio"]["count"])
|
print(df.groupby(["classificationResult"]).describe()["calculatedRatio"]["count"])
|
||||||
|
|
||||||
|
print("duplicates", len(df['_id']) - len(df['_id'].drop_duplicates()))
|
||||||
|
|
||||||
# Save the DataFrame to a CSV file
|
# Save the DataFrame to a CSV file
|
||||||
output_filename = f'tests_{datetime.today().strftime("%d_%m_%Y_%H_%M")}.xlsx'
|
output_filename = f'tests_{datetime.today().strftime("%d_%m_%Y_%H_%M")}.xlsx'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user