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

train = pd.read_csv('/kaggle/input/sf-crime/train.csv.zip')
test = pd.read_csv('/kaggle/input/sf-crime/test.csv.zip')

train.isnull().sum()

train.drop(['Dates', 'Category', 'Descript', 'DayOfWeek', 'Address'], inplace=True, axis=1)
test.drop(['Id', 'Dates', 'DayOfWeek', 'Address'], inplace=True, axis=1)

train.nunique()

train.head()