Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
luigigubello opened this issue Feb 21, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@luigigubello
Copy link
Owner

luigigubello commented Feb 21, 2020

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 luigigubello added the bug Something isn't working label Feb 21, 2020
@luigigubello luigigubello changed the title [tweets-analysis] Script doesn't work with Pandas >= 1.0 [tweets-analysis] [FIX] Script doesn't work with Pandas >= 1.0 Feb 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant