Skip to content
Snippets Groups Projects
Commit 6a0fd103 authored by Salvador González Garcés's avatar Salvador González Garcés
Browse files

Arrondissement du pourcentage

parent 054778d3
Branches
No related tags found
1 merge request!6Arrondissement du pourcentage
...@@ -25,7 +25,7 @@ for i, tweet in enumerate(sntwitter.TwitterSearchScraper(query=construct_query(t ...@@ -25,7 +25,7 @@ for i, tweet in enumerate(sntwitter.TwitterSearchScraper(query=construct_query(t
if ("metaverse" in tweet.rawContent.lower()): if ("metaverse" in tweet.rawContent.lower()):
table = pd.concat([table, pd.DataFrame.from_records([dict])]) table = pd.concat([table, pd.DataFrame.from_records([dict])])
print(i/tweetNumber*100, " %") print(round(i/tweetNumber*100, 1), " %")
print(calc_frequency(table)) print(calc_frequency(table))
table = table.drop_duplicates(subset=["tweet"]).sort_values(by=["tweet"]) table = table.drop_duplicates(subset=["tweet"]).sort_values(by=["tweet"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment