ium_444380/calc_stats.py

12 lines
425 B
Python

import pandas as pd
crime_train = pd.read_csv('crime_train.csv')
crime_test = pd.read_csv('crime_test.csv')
crime_dev = pd.read_csv('crime_dev.csv')
print(crime_train.describe(include="all"))
print(crime_test.describe(include="all"))
print(crime_dev.describe(include="all"))
print(crime_train["OFFENSE_CODE"].value_counts())
print(crime_train["DISTRICT"].value_counts())
print(crime_train["YEAR"].value_counts())