Fix path to csv files
This commit is contained in:
parent
55773f0bab
commit
3c9bdb3968
@ -6,7 +6,7 @@ won't read it correctly.
|
||||
'''
|
||||
|
||||
# Read dataset and fill missing rows with zeroes
|
||||
dataset = pd.read_csv('data/global_last10years.csv', index_col=0).fillna(0)
|
||||
dataset = pd.read_csv('csv/global_last10years.csv', index_col=0).fillna(0)
|
||||
|
||||
print('Correlations between different columns (NaNs replace with 0):')
|
||||
print(dataset.corr(method='pearson').round(decimals=2))
|
||||
|
||||
@ -2,7 +2,7 @@ import pandas as pd
|
||||
from statistics import median
|
||||
|
||||
# Read dataset and fill missing rows with zeroes
|
||||
dataset = pd.read_csv('data/global_last10years.csv', index_col=0).fillna(0)
|
||||
dataset = pd.read_csv('csv/global_last10years.csv', index_col=0).fillna(0)
|
||||
|
||||
# List of unique source IPs per hour (daily avg)
|
||||
ts_uIPs = dataset.iloc[:,2]
|
||||
|
||||
@ -3,7 +3,7 @@ import matplotlib.dates as mdate
|
||||
from datetime import datetime
|
||||
|
||||
# Read dataset and fill missing rows with zeroes
|
||||
dataset = pd.read_csv('data/global_last10years.csv', index_col=0).fillna(0)
|
||||
dataset = pd.read_csv('csv/global_last10years.csv', index_col=0).fillna(0)
|
||||
|
||||
# List of unique source IPs per hour (daily avg)
|
||||
ts_uIPs = dataset.iloc[:,2]
|
||||
|
||||
@ -2,8 +2,8 @@ import pandas as pd
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
|
||||
dataset_hourly = pd.read_csv('data/team13_monthly.csv', index_col=0).dropna()
|
||||
dataset_daily = pd.read_csv('data/global_last10years.csv', index_col=0).dropna()
|
||||
dataset_hourly = pd.read_csv('csv/team13_monthly.csv', index_col=0).dropna()
|
||||
dataset_daily = pd.read_csv('csv/global_last10years.csv', index_col=0).dropna()
|
||||
|
||||
table_a_info = {
|
||||
'total sum': dataset_hourly.sum(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user