You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed the package with pip. When trying to import the package in Juyter i get the following error. Is this m\on my end or an issue with the package?
import numpy as np from collegebaseball import * import pandas as pd import plotly.express as px import plotly.graph_objects as go from plotly.subplots import make_subplots import plotly.offline as pyo pyo.init_notebook_mode()
TypeError Traceback (most recent call last)
in
1 import numpy as np
----> 2 from collegebaseball import *
3 import pandas as pd
4 import plotly.express as px
5 import plotly.graph_objects as go
~/opt/anaconda3/lib/python3.8/site-packages/collegebaseball/init.py in
18 get_rosters_path, get_rosters_table,
19 get_season_linear_weights
---> 20 from .download_utils import download_rosters,
21 download_player_game_logs, download_season_rosters,
22 download_team_results, download_team_stats, \
~/opt/anaconda3/lib/python3.8/site-packages/collegebaseball/download_utils.py in
18
19
---> 20 def download_rosters(seasons: list[int], divisions: list[int], save=True):
21 res = pd.DataFrame()
22 failures = []
TypeError: 'type' object is not subscriptable
The text was updated successfully, but these errors were encountered:
Installed the package with pip. When trying to import the package in Juyter i get the following error. Is this m\on my end or an issue with the package?
import numpy as np from collegebaseball import * import pandas as pd import plotly.express as px import plotly.graph_objects as go from plotly.subplots import make_subplots import plotly.offline as pyo pyo.init_notebook_mode()
TypeError Traceback (most recent call last)
in
1 import numpy as np
----> 2 from collegebaseball import *
3 import pandas as pd
4 import plotly.express as px
5 import plotly.graph_objects as go
~/opt/anaconda3/lib/python3.8/site-packages/collegebaseball/init.py in
18 get_rosters_path, get_rosters_table,
19 get_season_linear_weights
---> 20 from .download_utils import download_rosters,
21 download_player_game_logs, download_season_rosters,
22 download_team_results, download_team_stats, \
~/opt/anaconda3/lib/python3.8/site-packages/collegebaseball/download_utils.py in
18
19
---> 20 def download_rosters(seasons: list[int], divisions: list[int], save=True):
21 res = pd.DataFrame()
22 failures = []
TypeError: 'type' object is not subscriptable
The text was updated successfully, but these errors were encountered: