removed %1 = 0 since it was not truly necessary

This commit is contained in:
hippocritical
2025-06-08 19:31:17 +02:00
parent 985c15bdd9
commit c997f02085

View File

@@ -71,7 +71,7 @@ def import_kraken_trades_from_csv(config: Config, convert_to: str):
# drop any row not having a number in the column timestamp
timestamp_numeric = pd.to_numeric(trades["timestamp"], errors="coerce")
trades = trades[timestamp_numeric.notna() & (timestamp_numeric % 1 == 0)]
trades = trades[timestamp_numeric.notna()]
trades.loc[:, "timestamp"] = trades["timestamp"] * 1e3
trades.loc[:, "cost"] = trades["price"] * trades["amount"]