s = pd.Series(range(0, 100))
s[40:60] = None
s[90:95] = None
s0 0.0
1 1.0
2 2.0
3 3.0
4 4.0
...
95 95.0
96 96.0
97 97.0
98 98.0
99 99.0
Length: 100, dtype: float64
PandasMissingSeries.number_missing ()
Return the number of missing values in Series.
PandasMissingSeries.number_complete ()
Return the number of non-missing values in the Series.
PandasMissingSeries.proportion_missing ()
Return the proportion of missing values in the Series.
PandasMissingSeries.proportion_complete ()
Return the proportion of non-missing values in the Series
PandasMissingSeries.percentage_missing ()
Return the percentage of missing values in the Series
PandasMissingSeries.percentage_complete ()
Return the percentage of non-missing values in the Series
df = pd.DataFrame.from_dict(
{
"a": range(0, 10),
"b": range(10, 20),
"c": range(20, 30),
"d": range(30, 40),
"e": range(40, 50)
}
)
df.iloc[1:4, 0] = None
df.iloc[9, 0] = None
df.iloc[5:7, 1] = None
df| a | b | c | d | e | |
|---|---|---|---|---|---|
| 0 | 0.0 | 10.0 | 20 | 30 | 40 |
| 1 | NaN | 11.0 | 21 | 31 | 41 |
| 2 | NaN | 12.0 | 22 | 32 | 42 |
| 3 | NaN | 13.0 | 23 | 33 | 43 |
| 4 | 4.0 | 14.0 | 24 | 34 | 44 |
| 5 | 5.0 | NaN | 25 | 35 | 45 |
| 6 | 6.0 | NaN | 26 | 36 | 46 |
| 7 | 7.0 | 17.0 | 27 | 37 | 47 |
| 8 | 8.0 | 18.0 | 28 | 38 | 48 |
| 9 | NaN | 19.0 | 29 | 39 | 49 |
PandasMissingDataFrame.number_missing ()
Return the number of missing values in the entire DataFrame.
PandasMissingDataFrame.number_complete ()
Return the number of non-missing values in the entire DataFrame.
PandasMissingDataFrame.proportion_missing ()
Return the proportion of missing values in the entire DataFrame.
PandasMissingDataFrame.proportion_complete ()
Return the proportion of non-missing values in the entire DataFrame.
PandasMissingDataFrame.percentage_missing ()
Return the percentage of missing values in the entire DataFrame.
PandasMissingDataFrame.percentage_complete ()
Return the percentage of non-missing values in the entire DataFrame.
PandasMissingDataFrame.number_variable_missing ()
Return the number of variables with missing values.
PandasMissingDataFrame.number_variable_complete ()
Return the number of variables with non-missing values.
PandasMissingDataFrame.proportion_variable_missing ()
Return the proportion of variables with missing values.
PandasMissingDataFrame.proportion_variable_complete ()
Return the proportion of variables with non-missing values.
PandasMissingDataFrame.percentage_variable_missing ()
Return the percentage of variables with missing values.
PandasMissingDataFrame.percentage_variable_complete ()
Return the percentage of variables with non-missing values.
PandasMissingDataFrame.number_case_missing ()
Return the number of cases with missing values.
PandasMissingDataFrame.number_case_complete ()
Return the number of cases with non-missing values.
PandasMissingDataFrame.proportion_case_missing ()
Return the proportion of cases with missing values.
PandasMissingDataFrame.proportion_case_complete ()
Return the proportion of cases with non-missing values.
PandasMissingDataFrame.percentage_case_missing ()
Return the percentage of cases with missing values.
PandasMissingDataFrame.percentage_case_complete ()
Return the percentage of cases with non-missing values.