0
0

More than 1 year has passed since last update.

pymysql.err.programmingerror inf can not be used with mysql 対策

Posted at

pymysql.err.programmingerror inf can not be used with mysql というエラーがでた場合

例えばデータフレームのカラムの pct_change() などで予想外の値が生じて
MySQLのテーブルに格納できない場合など、、、

df = df.replace([np.inf, -np.inf], np.nan)

正負の inf を replace

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0