My-Twitter-World icon indicating copy to clipboard operation
My-Twitter-World copied to clipboard

[tweets-analysis] [FIX] Script doesn't work with Pandas >= 1.0

Open luigigubello opened this issue 5 years ago • 0 comments

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.

luigigubello avatar Feb 21 '20 17:02 luigigubello