Skip to content

Commit 4517e39

Browse files
Remove unused imports from goal rate analysis script
Removed unused import statements for numpy, pandas, and various sklearn modules to clean up the code.
1 parent 9f09892 commit 4517e39

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

EnglishPremierLeague_GoalRateAnalysis.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -470,28 +470,6 @@
470470
imp_eng = pd.Series(rf_eng_model.feature_importances_, index=rf_feats_eng).sort_values(ascending=False)
471471
print(imp_eng.round(4))
472472

473-
import numpy as np
474-
import pandas as pd
475-
476-
from sklearn.preprocessing import StandardScaler
477-
from sklearn.impute import SimpleImputer
478-
from sklearn.pipeline import Pipeline
479-
from sklearn.compose import ColumnTransformer
480-
481-
from sklearn.cluster import KMeans, AgglomerativeClustering, DBSCAN
482-
from sklearn.metrics import silhouette_score
483-
from sklearn.decomposition import PCA
484-
from sklearn.neighbors import NearestNeighbors
485-
486-
from sklearn.model_selection import train_test_split
487-
from sklearn.ensemble import RandomForestRegressor
488-
489-
import matplotlib.pyplot as plt
490-
import seaborn as sns
491-
492-
from IPython.display import display
493-
494-
sns.set(style='whitegrid', rc={"axes.spines.right": False, "axes.spines.top": False})
495473

496474
# -----------------------
497475
# 0) Safety

0 commit comments

Comments
 (0)