【python error】FutureWarning: The error_bad_lines argument has been deprecated and will be removed in a future version.
前言
博主运行python代码的时候出现了warning,主要是模块版本引起的。
drawlog.py warning
drawlog.py:76: FutureWarning: The error_bad_lines argument has been deprecated and will be removed in a future version.
当使用pandas.read_csv函数读取数据时若使用error_bad_lines=False来跳过错误行会出现警告,
这是因为参数error_bad_lines自 1.3.0 版起已被弃用,应改为使用 on_bad_lines 参数来指定遇到坏行时的行为。即将error_bad_lines=False改为on_bad_lines='skip'。
参考
1. sys:1: FutureWarning: The error_bad_lines argument has been deprecated and will be removed in a futu;
完
各美其美,美美与共,不和他人作比较,不对他人有期待,不批判他人,不钻牛角尖。
心正意诚,做自己该做的事情,做自己喜欢做的事情,安静做一枚有思想的技术媛。
版权声明,转载请注明出处:https://www.cnblogs.com/happyamyhope/
心正意诚,做自己该做的事情,做自己喜欢做的事情,安静做一枚有思想的技术媛。
版权声明,转载请注明出处:https://www.cnblogs.com/happyamyhope/