0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Pythonでの欠損値の扱い方

Posted at

背景

pythonでの欠損値の扱い方を良く間違えるので、備忘録的にまとめておきたい

None

  • NoneType型の唯一の値

Noneの判定方法

  • XXX is None

numpy.nan

  • float型における非数を表す値

NaN(Not A Number)の判定方法

  • pandas.DataFrame.isna
  • pandas.DataFrame.isnull
  • pandas.Series.isna
  • pandas.Series.isnull
  • numpy.isnan

参照

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?