I\'ve got a large file with login information for a list of users. The problem is that the file includes other information in the Date column. I would like to remov
Date
Use pd.to_datetime with parameter errors='coerce' to make non-dates into NaT null values. Then you can drop those rows
pd.to_datetime
errors='coerce'
NaT
df['Date'] = pd.to_datetime(df['Date'], errors='coerce') df = df.dropna(subset=['Date']) df