text_plain_output_1.png
import pandas as pd

dataset = pd.read_csv('/kaggle/input/arrests-for-marijuana-possession/Arrests.csv')

dataset.drop(dataset.columns[0], axis=1, inplace=True)

dataset['year'] = pd.to_datetime(dataset['year'], format='%Y').dt.year

dataset.isna().sum()

duplicated_entries_df = dataset[dataset.duplicated()]

dataset.info()