Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
0997db4
1
Parent(s):
03371d0
Remove unnecessary MongoDB metadata columns from DataFrames
Browse files
app.py
CHANGED
@@ -54,6 +54,7 @@ def pull_baselines():
|
|
54 |
prop_trends = raw_display.dropna(subset='Player')
|
55 |
prop_trends['Player'].replace(['JJ Peterka', 'Alexander Killorn', 'Matt Boldy', 'Nick Paul', 'Alex Kerfoot'],
|
56 |
['John-Jason Peterka', 'Alex Killorn', 'Matthew Boldy', 'Nicholas Paul', 'Alexander Kerfoot'], inplace=True)
|
|
|
57 |
|
58 |
collection = db["Pick6_ingest"]
|
59 |
cursor = collection.find()
|
@@ -62,6 +63,7 @@ def pull_baselines():
|
|
62 |
pick_frame = raw_display.dropna(subset='Player')
|
63 |
pick_frame['Player'].replace(['JJ Peterka', 'Alexander Killorn', 'Matt Boldy', 'Nick Paul', 'Alex Kerfoot'],
|
64 |
['John-Jason Peterka', 'Alex Killorn', 'Matthew Boldy', 'Nicholas Paul', 'Alexander Kerfoot'], inplace=True)
|
|
|
65 |
|
66 |
team_dict = dict(zip(prop_table['Player'], prop_table['Team']))
|
67 |
|
|
|
54 |
prop_trends = raw_display.dropna(subset='Player')
|
55 |
prop_trends['Player'].replace(['JJ Peterka', 'Alexander Killorn', 'Matt Boldy', 'Nick Paul', 'Alex Kerfoot'],
|
56 |
['John-Jason Peterka', 'Alex Killorn', 'Matthew Boldy', 'Nicholas Paul', 'Alexander Kerfoot'], inplace=True)
|
57 |
+
prop_trends = prop_trends.drop(columns=['_id', 'index'])
|
58 |
|
59 |
collection = db["Pick6_ingest"]
|
60 |
cursor = collection.find()
|
|
|
63 |
pick_frame = raw_display.dropna(subset='Player')
|
64 |
pick_frame['Player'].replace(['JJ Peterka', 'Alexander Killorn', 'Matt Boldy', 'Nick Paul', 'Alex Kerfoot'],
|
65 |
['John-Jason Peterka', 'Alex Killorn', 'Matthew Boldy', 'Nicholas Paul', 'Alexander Kerfoot'], inplace=True)
|
66 |
+
pick_frame = pick_frame.drop(columns=['_id', 'index'])
|
67 |
|
68 |
team_dict = dict(zip(prop_table['Player'], prop_table['Team']))
|
69 |
|