Max Overbeck
Max Overbeck

Reputation: 5

twarc2 csv returns TypeError: applymap() got an unexpected keyword argument 'na_action'

I am trying to use twarc2 csv via the command line to convert a downloaded .jsonl file into a csv file. However running the required twarc2 csv command returns the following TypeError: applymap() got an unexpected keyword argument 'na_action' (see attached picture). I saw in a related post that updating pandas should help but the error occurs even after having updated pandas. Also this is my first post on stack overflow so let me know if you need additional information. Many thanks in advance!

command line TypeError

Upvotes: 0

Views: 111

Answers (1)

Max Overbeck
Max Overbeck

Reputation: 5

Update: The issue was my outdated python version 3.6 which didn't allow me to upgrade pandas to 1.2. Installing the latest python version 3.9 and running the script again did the trick.

Upvotes: 0

Related Questions