После первичного осмотра датасета найдите в нём пропуски. Для этого выведите и изучите сводную информацию о датафрейме — типах данных, столбцах и ненулевых значениях.
# импорт библиотеки pandas
import pandas as pd
# считывание CSV-файла в датафрейм pandas
df = pd.read_csv('real_estate.csv')
# вывод сводной информации о датафрейме
print(df.info())
Результат
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 10000 entries, 0 to 9999
Data columns (total 7 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 total_area 9999 non-null float64
1 living_area 9999 non-null float64
2 ceil_height 9999 non-null float64
3 rooms_number 9999 non-null float64
4 city_center_distance 9999 non-null float64
5 years_after_repair 9999 non-null float64
6 price 9999 non-null float64
dtypes: float64(7)
memory usage: 547.0 KB
None
Как видите, в датафрейме 10 тыс. наблюдений и в каждом из признаков — один пропуск.