Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello folks,
I am trying to use python scripts to read data from a Qlik Cloud bar chart, output it as a pdf file, but I keep on getting this error bellow :
Failed to fetch chart data. Status code: 401
Traceback (most recent call last):
File "c:\Users\Sunday\Documents\ClikModules\app3v2.py", line 39, in <module>
plt.bar(df['Manager'], df['Sales'])
~~^^^^^^^^^^^
File "C:\Users\Sunday\AppData\Local\Programs\Python\Python312\Lib\site-packages\pandas\core\frame.py", line 3893, in __getitem__
indexer = self.columns.get_loc(key)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sunday\AppData\Local\Programs\Python\Python312\Lib\site-packages\pandas\core\indexes\range.py", line 418, in get_loc
raise KeyError(key)
KeyError: 'Manager'
here is my scripts to help me to check what I did wrong:
Please, I will appreciate anyone that can really help
The authorization Issue suggests that your authentication credentials are incorrect or that the API endpoint requires a different method of authentication.
The KeyError in Pandas DataFrame suggests that the column 'Manager' does not exist, which could be due to incorrect data parsing or an unexpected data structure.
Hope this helps