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
{{ message }}
This repository was archived by the owner on Dec 9, 2022. It is now read-only.
It is returning dict instead of a dataframe.
You can covert this dictionary to dataframe as follows:
markets_df = messari.get_all_markets()
markets_df = pd.DataFrame(markets_df['data'])
markets_df.head()
I had this same issue and was able to fix just now.
Originally I had installed this with pip install messari — then I got this error (and others)
However, the above code works as intended, returning a dataframe, when I install via pip install git+https://github.com/messari/messari-python-api.git.
So my guess is that it's an older version being installed with pip install messari?
I had the same experience; when I used pip3 install messari, it downloaded the 0.0.1 version of the package; I used pip3 install messari --upgrade and it downloaded the newest 1.0 version.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
it says "'dict' object has no attribute 'head'"
could you please help me?
The text was updated successfully, but these errors were encountered: