LoginSignup
1
0

More than 1 year has passed since last update.

PandasでExcelからCSVに変換するときにゼロ埋め数値を維持する

Posted at

ゼロ埋めした数字が読み込むと同時に消える現象が発生。
型指定して読み込もうとしたが、dtype='object'のオプションをつけるのでも対応できる。

xlsx = pd.read_excel(excel_path + fileName + '.xlsx', dtype='object')

Python: Keep leading zeroes when converting from excel to CSV with pandas

1
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
1
0