razorhash / pyfmpcloud

A python wrapper for the Financial Model Prep API for analysis of public companies
MIT License
49 stars 9 forks source link

pd.read_json() no longer accepts json strings #16

Open gdhaaijer opened 3 years ago

gdhaaijer commented 3 years ago

As of pandas 1.1.0 (apparently) pd.read_json() no longer accepts json strings as input, resulting in a "Protocol not known" exception. This breaks safe_read_json(). Details here, including a fix: from io import StringIO newdf = pd.read_json(StringIO(temp))

Have tested this, works.

farbodbahari commented 3 years ago

I still get the same error when I want to pull cash flow and income statement.... Does anyone have a solution?