Curse Jewpidor smh

This commit is contained in:
2023-03-31 13:43:33 +02:00
parent 83f5415ff0
commit fb062ac0e9
5 changed files with 953 additions and 465 deletions

946
dwarves/Mining_HQ.ipynb Normal file

File diff suppressed because one or more lines are too long

View File

@@ -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

View File

@@ -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()

View File

@@ -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")