Python error to get solar data

Hi,

I try to obtain solar data using API python example. As I typed below scripts, then it returs error with several messages started with Traceback…bla…bla…bla

Has anyone know how to fix the problem?

thanks

args = {
… ‘lat’: 34.125,
… ‘lon’: 39.814,
… ‘date_from’: ‘2014-01-01’,
… ‘date_to’: ‘2014-12-31’,
… ‘dataset’: ‘merra2’,
… ‘capacity’: 1.0,
… ‘system_loss’: 10,
… ‘tracking’: 0,
… ‘tilt’: 35,
… ‘azim’: 180,
… ‘format’: ‘json’
… }

r = s.get(url, params=args)
df = pd.read_json(r.text, orient=‘index’)

Traceback (most recent call last):
File “”, line 1, in
File “C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\json.py”, line 281, in read_json
date_unit).parse()
File “C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\json.py”, line 349, in parse
self._parse_no_numpy()
File “C:\ProgramData\Anaconda3\lib\site-packages\pandas\io\json.py”, line 576, in _parse_no_numpy
loads(json, precise_float=self.precise_float), dtype=None).T
ValueError: No ‘:’ found when decoding object value