Hello!
I have been trying to get python API working and as default (copypaste from the Python example) it returns following error:
ValueError: No ‘:’ found when decoding object value
It comes from the line: df = pd.read_json(r.text, orient=‘index’)
r.text is in format: ‘{“1388534400000”:{"[“output”,“kW”]":0.0}, … , “1420066800000”:{"[“output”,“kW”]":0.0}}’
Any ideas on how to fix this?
The obvious work-around would be to get the data as csv and use the corresponding functions for that, however I get errors about too long path names for Windows… (though this is easily fixed)
Some googling on the problem return different solutions:
- It is existing error and can be worked around with pandas.DataFrame.to_json and pandas.DataFrame.reset_index , however for this case the JSON should already be in DataFrame to use these tools for fix.
- The data is bad / wrong format / something
P.S. I’m not the best programmer so even an obvious solution might be the correct one (newest version of pandas - check)