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
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/pandas/core/internals/construction.py](https://localhost:8080/#) in _finalize_columns_and_data(content, columns, dtype)
968 try:
--> 969 columns = _validate_or_indexify_columns(contents, columns)
970 except AssertionError as err:
12 frames
AssertionError: 320 columns passed, passed data had 1 columns
The above exception was the direct cause of the following exception:
ValueError Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/pandas/core/internals/construction.py](https://localhost:8080/#) in _finalize_columns_and_data(content, columns, dtype)
970 except AssertionError as err:
971 # GH#26429 do not raise user-facing AssertionError
--> 972 raise ValueError(err) from err
973
974 if len(contents) and contents[0].dtype == np.object_:
ValueError: 320 columns passed, passed data had 1 columns
My environment (Google Colab):
Python: 3.10.12
pybaseball: 2.2.7
I guess maybe there are some different from the respond data so the method break since I also tried all, nl and al, they still worked for me.
The text was updated successfully, but these errors were encountered:
Hi, I followed by batting_stats document and tried to use
mnl
to get data but got an errorMy Code:
Error I got:
My environment (Google Colab):
I guess maybe there are some different from the respond data so the method break since I also tried
all
,nl
andal
, they still worked for me.The text was updated successfully, but these errors were encountered: