Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def init_baselines():
|
|
59 |
hitter_gamelog_table = hitter_gamelog_table.set_axis(['Player', 'Team', 'Date', 'G', 'AB', 'PA', 'H', '1B', '2B', '3B', 'HR', 'R', 'RBI', 'BB', 'IBB', 'SO', 'HBP', 'SF', 'SH',
|
60 |
'GDP', 'SB', 'CS', 'AVG', 'SLG', 'wRC+', 'LD%', 'GB%', 'FB%', 'Hard%', 'Barrels', 'Barrel%'], axis=1)
|
61 |
|
62 |
-
collection = db["
|
63 |
cursor = collection.find() # Finds all documents in the collection
|
64 |
|
65 |
raw_display = pd.DataFrame(list(cursor))
|
|
|
59 |
hitter_gamelog_table = hitter_gamelog_table.set_axis(['Player', 'Team', 'Date', 'G', 'AB', 'PA', 'H', '1B', '2B', '3B', 'HR', 'R', 'RBI', 'BB', 'IBB', 'SO', 'HBP', 'SF', 'SH',
|
60 |
'GDP', 'SB', 'CS', 'AVG', 'SLG', 'wRC+', 'LD%', 'GB%', 'FB%', 'Hard%', 'Barrels', 'Barrel%'], axis=1)
|
61 |
|
62 |
+
collection = db["MLB_Pitchers_DB"]
|
63 |
cursor = collection.find() # Finds all documents in the collection
|
64 |
|
65 |
raw_display = pd.DataFrame(list(cursor))
|