Adds requirements.txt

This commit is contained in:
procrastimax 2023-06-18 15:03:41 +02:00
parent 2c50cc9b72
commit 2684b4b8c7
2 changed files with 7 additions and 1 deletions

6
requirements.txt Normal file
View File

@ -0,0 +1,6 @@
numpy==1.25.0
pandas==2.0.2
python-dateutil==2.8.2
pytz==2023.3
six==1.16.0
tzdata==2023.3

View File

@ -20,7 +20,7 @@ count_tweets = tweets_all_combined["tweet_id"].value_counts().shape[0]
count_police_accounts = tweets_all_combined["user_id"].value_counts().shape[0]
date_first_tweet = datetime.strptime(tweets_all_combined['created_at'].min(), date_format_str)
date_last_tweet = datetime.strptime(tweets_all_combined['created_at'].max(), date_format_str)
day_diff = (date_last_tweet-date_first_tweet).days
day_diff = (date_last_tweet - date_first_tweet).days
def hr_func(ts):