差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
programming:python:packages:pandas:format_output [2021/12/09] – [NaNを含むintカラム] ikatakosprogramming:python:packages:pandas:format_output [2021/12/09] (現在) – [NaNを含むintカラム] ikatakos
行 40: 行 40:
 </sxh> </sxh>
  
-上記の変換ではNaNNaNのまま残っているが、通常はNaNは空文字列になる。+上記の変換ではnp.nannp.nanのまま残っているが、通常は空文字列になる。
  
   * [[https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_csv.html|pandas.DataFrame.to_csv — pandas documentation]]   * [[https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_csv.html|pandas.DataFrame.to_csv — pandas documentation]]
  
-もし他の表現にしたい場合、''df.to_csv(na_rep=\'NULL\')'' などとしてやれば、''np.nan''指定した文字列で表現される。+もし他の表現にしたい場合、''df.to_csv(na_rep='NULL')'' などとしてやれば、指定した文字列で表現される。
  
  
programming/python/packages/pandas/format_output.txt · 最終更新: 2021/12/09 by ikatakos
CC Attribution 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0