Python weekday drop from DataFrame
cmsdk.com › python › python-weekday-drop-from-dataI try to drop the weekdays from a dataframe (financial time series) and I keep getting the following error: "AttributeError: 'Series' object has no attribute 'weekday'". Here is my code: df = df[df.date.weekday() < 5] df = df.drop(df.date.weekday() < 5) I tried a few others but nothing seemed to work. I looked at dtypes and this is what I get: