Curse Jewpidor smh
This commit is contained in:
946
dwarves/Mining_HQ.ipynb
Normal file
946
dwarves/Mining_HQ.ipynb
Normal file
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
# Getting and combining data
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
from dwarves import scout
|
||||
import scout
|
||||
from numpy import ndarray
|
||||
from scipy.stats import binned_statistic
|
||||
|
||||
|
||||
@@ -53,8 +53,10 @@ games_dur['NA_Sales'] = games_dur['NA_Sales'].multiply(1000)
|
||||
|
||||
plt.xticks(rotation = 90)
|
||||
games_violence_US = sns.relplot(data = games_dur, x = 'NA_Sales', y = 'Violent_US')
|
||||
plt.close(1)
|
||||
plt.show()
|
||||
|
||||
plt.xticks(rotation = 90)
|
||||
games_crime_dur = sns.jointplot(data = games_dur, x = "Year", y = 'Violent_US')
|
||||
plt.show()
|
||||
plt.close(1)
|
||||
plt.show()
|
||||
|
||||
@@ -2,10 +2,9 @@
|
||||
# Collects stuff from the rest of the scripts
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
import seaborn as sns
|
||||
# containment breach
|
||||
import scipy as scp
|
||||
import digger, gunner, scout
|
||||
import gunner, digger, gunner, scout
|
||||
|
||||
# Instantiating globals to be used in other files
|
||||
global games_merged_dat
|
||||
@@ -32,8 +31,8 @@ crime_CA = pd.read_excel("datasets/crime/clean_crime_canada_dataset.xlsx")
|
||||
|
||||
crime_US = pd.read_csv("datasets/crime/report.csv")
|
||||
|
||||
print(crime_US.isnull())
|
||||
print(crime_CA.isnull())
|
||||
print(crime_US.isnull().count())
|
||||
print(crime_CA.isnull().count())
|
||||
|
||||
year_interval = gunner.year_interval(crime_US, crime_CA, "report_year", "year")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user