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))
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.