Skip to content

Commit 21a870f

Browse files
authored
Merge pull request #420 from palewire/patch-16
Fix None check in update_chart to work with DataFrames
2 parents 066ffdc + 10cf591 commit 21a870f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

datawrapper/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ def update_chart(
809809
obj = self.get_chart(chart_id)
810810

811811
# Add data, if provided
812-
if data:
812+
if data is not None:
813813
self.add_data(chart_id=obj["id"], data=data)
814814

815815
# Return the result

0 commit comments

Comments
 (0)