Skip to content

Commit b417744

Browse files
authored
All str for the data argument on create_create
1 parent 30782e6 commit b417744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

datawrapper/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def create_chart(
135135
self,
136136
title: str = "New Chart",
137137
chart_type: str = "d3-bars-stacked",
138-
data: Union[pd.DataFrame, None] = None,
138+
data: pd.DataFrame | str | None = None,
139139
folder_id: str = "",
140140
organization_id: str = "",
141141
metadata: Optional[Dict[Any, Any]] = None,
@@ -153,7 +153,7 @@ def create_chart(
153153
chart_type : str, optional
154154
Chart type to be created. See https://developer.datawrapper.de/docs/chart-types, by default "d3-bars-stacked"
155155
data : [type], optional
156-
A pandas DataFrame containing the data to be added, by default None
156+
A pandas DataFrame or string containing the data to be added, by default None
157157
folder_id : str, optional
158158
ID of folder in Datawrapper.de for the chart, table or map to be created in, by default ""
159159
organization_id : str, optional

0 commit comments

Comments
 (0)