Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -63,12 +63,6 @@ def init_baselines():
|
|
63 |
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',
|
64 |
'GDP', 'SB', 'CS', 'AVG', 'SLG', 'wRC+', 'LD%', 'GB%', 'FB%', 'Hard%', 'Barrels', 'Barrel%'], axis=1)
|
65 |
|
66 |
-
client.close()
|
67 |
-
|
68 |
-
time.sleep(1)
|
69 |
-
|
70 |
-
client = MongoClient(uri, retryWrites=True, serverSelectionTimeoutMS=100000)
|
71 |
-
|
72 |
collection = db["MLB_Pitchers_DB"]
|
73 |
cursor = collection.find() # Finds all documents in the collection
|
74 |
|
|
|
63 |
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',
|
64 |
'GDP', 'SB', 'CS', 'AVG', 'SLG', 'wRC+', 'LD%', 'GB%', 'FB%', 'Hard%', 'Barrels', 'Barrel%'], axis=1)
|
65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
collection = db["MLB_Pitchers_DB"]
|
67 |
cursor = collection.find() # Finds all documents in the collection
|
68 |
|