chore: revert unnecessary comment
This commit is contained in:
@@ -795,9 +795,7 @@ class RPC:
|
|||||||
|
|
||||||
results = results.rename({"timestamp": "date"}, axis=1)
|
results = results.rename({"timestamp": "date"}, axis=1)
|
||||||
results.loc[:, "__date_ts"] = results.loc[:, "date"].dt.as_unit("ms").astype("int64")
|
results.loc[:, "__date_ts"] = results.loc[:, "date"].dt.as_unit("ms").astype("int64")
|
||||||
# Exclude non-bot managed rows. Coerce to bool: read_sql may return the
|
# Exclude non-bot managed for now
|
||||||
# Boolean column as an integer dtype (e.g. MySQL/MariaDB), which would
|
|
||||||
# make .loc do label-based indexing instead of boolean masking.
|
|
||||||
results_filtered = results.loc[results["bot_managed"].astype(bool)]
|
results_filtered = results.loc[results["bot_managed"].astype(bool)]
|
||||||
|
|
||||||
results_final = (
|
results_final = (
|
||||||
|
|||||||
Reference in New Issue
Block a user