chekos / Datawrapper

A light-weight wrapper for the Datawrapper API.
https://datawrapper.readthedocs.io
MIT License
57 stars 20 forks source link

Fix None check in update_chart to work with DataFrames #420

Closed palewire closed 2 months ago

palewire commented 4 months ago

What we have now will fail if you submit a DataFrame, saying:

ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
palewire commented 2 months ago

@chekos, would you mind merging this in?