We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ran a monthly Colab script this morning and it generated an error when running
dw.refresh_data(chart_id_datawrapper)
AssertionError Traceback (most recent call last) in <cell line: 361>() 361 if cntLists == cntLatest: 362 dw.add_data(chart_id_datawrapper,dfLatestChanges) --> 363 dw.refresh_data(chart_id_datawrapper) 364 dw.update_description( 365 chart_id=chart_id_datawrapper,
/usr/local/lib/python3.10/dist-packages/datawrapper/main.py in refresh_data(self, chart_id) 1242 """ 1243 response = self.post(f"{self._CHARTS_URL}/{chart_id}/data/refresh") -> 1244 assert isinstance(response, dict) 1245 return response 1246
AssertionError:
Running this in Colab
https://datawrapper.readthedocs.io/en/latest/user-guide/api.html#datawrapper.Datawrapper.refresh_data
refresh_data(chart_id: str) → Response Fetch configured external data and add it to the chart.
Parameters: chart_id (str) – ID of chart, table or map to add data to.
Returns: A requests.Response
Return type: requests.Response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Ran a monthly Colab script this morning and it generated an error when running
dw.refresh_data(chart_id_datawrapper)
output with the following error
AssertionError Traceback (most recent call last)
in <cell line: 361>()
361 if cntLists == cntLatest:
362 dw.add_data(chart_id_datawrapper,dfLatestChanges)
--> 363 dw.refresh_data(chart_id_datawrapper)
364 dw.update_description(
365 chart_id=chart_id_datawrapper,
/usr/local/lib/python3.10/dist-packages/datawrapper/main.py in refresh_data(self, chart_id)
1242 """
1243 response = self.post(f"{self._CHARTS_URL}/{chart_id}/data/refresh")
-> 1244 assert isinstance(response, dict)
1245 return response
1246
AssertionError:
Environment
Running this in Colab
📎 Additional context
https://datawrapper.readthedocs.io/en/latest/user-guide/api.html#datawrapper.Datawrapper.refresh_data
refresh_data(chart_id: str) → Response
Fetch configured external data and add it to the chart.
Parameters:
chart_id (str) – ID of chart, table or map to add data to.
Returns:
A requests.Response
Return type:
requests.Response
The text was updated successfully, but these errors were encountered: