I need to drop all rows where a one column are below a certain value. I used the command below, but this returns the column as an object. I need to keep it as int64:
df["customer_id"] = df.drop(df["customer_id"][df["customer_id"] < 9999999].index)
df = df.dropna()
I have tried to re-cast the field as int64 after, but this causes the following error with data from a totally different column:
invalid literal for long() with base 10: '2014/03/09 11:12:27'