Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'type' object is not subscriptable #23

Open
regels opened this issue Feb 10, 2023 · 1 comment
Open

TypeError: 'type' object is not subscriptable #23

regels opened this issue Feb 10, 2023 · 1 comment

Comments

@regels
Copy link

regels commented Feb 10, 2023

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

@nathanblumenfeld
Copy link
Owner

Fixed in #25 with commit bb3fdb2. Please let us know if the issue persists for some reason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants