image_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

print('number of empty records in each features : ')
dataset.isna().sum()