My-Twitter-World
My-Twitter-World copied to clipboard
[tweets-analysis] [FIX] Script doesn't work with Pandas >= 1.0
tweets_analysis.py doesn't work with Pandas >= 1.0.
Error:
File "tweets_analysis.py", line 120, in extract_datetime_feature
df['weekday'] = df['tweet_time'].dt.dweekday_name.astype('category') # Extract weekday (i.e. Monday, Friday)
AttributeError: 'DatetimeProperties' object has no attribute 'dweekday_name'
How to fix:
Going to line 120 and change weekday_name into day_name().
I hope to fix it soon.