Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试通过命令行使用 twarc2 csv 将下载的 .jsonl 文件转换为 csv 文件。但是,运行所需的 twarc2 csv 命令会返回以下类型错误:applymap() 得到了意外的关键字参数“na_action”(见附图)。我在一篇相关文章中看到更新熊猫应该会有所帮助,但即使在更新熊猫之后也会出现错误。这也是我关于堆栈溢出的第一篇文章,所以如果您需要更多信息,请告诉我。提前谢谢了!
命令行类型错误
更新:问题是我过时的 python 版本 3.6,它不允许我将 pandas 升级到 1.2。安装最新的 python 版本 3.9 并再次运行脚本就可以了。