text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

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

df.isna().sum()

index_series = pd.DataFrame(df.time.drop_duplicates().sort_values().reset_index(drop=True))
index_series['times_gap'] = index_series - index_series.shift(1)
index_series.sort_values(by='times_gap', ascending=False).head(5)

sns.scatterplot(data=df, x='x', y='y')