text_html_output_1.png
import pandas as pd

train = pd.read_csv('../input/tabular-playground-series-mar-2022/train.csv', index_col='row_id', parse_dates=['time'])
test = pd.read_csv('../input/tabular-playground-series-mar-2022/test.csv', index_col='row_id', parse_dates=['time'])
sub = pd.read_csv('../input/tabular-playground-series-mar-2022/sample_submission.csv')

missing_values_train = train.isna().any().sum()
missing_values_test = test.isna().any().sum()

duplicates_train = train.duplicated().sum()
print('Duplicates in train data: {0}'.format(duplicates_train))
duplicates_test = test.duplicated().sum()
print('Duplicates in test data: {0}'.format(duplicates_test))