humlab / the_culture_of_international_relations

Repository for NLP-scripts related to the The Culture of International Relations project
2 stars 3 forks source link

TypeError in "List of Most Frequent Words" #23

Closed aibakeneko closed 4 years ago

aibakeneko commented 4 years ago

Problem: TypeError: copy() takes no keyword arguments

https://github.com/humlab/the_culture_of_international_relations/blob/d8b13e609a013864c299d1d4795a626bf85ae197/3_text_analysis/1_explore_corpus.ipynb#L721-L732

More specifically in

https://github.com/humlab/the_culture_of_international_relations/blob/d8b13e609a013864c299d1d4795a626bf85ae197/common/treaty_state.py#L578

Probable solution: upgrading Pandas to 1.0.1

aibakeneko commented 4 years ago

Upgrading Pandas fixes this.