Skip to content

Commit

Permalink
Merge pull request #375 from palewire/patch-9
Browse files Browse the repository at this point in the history
  • Loading branch information
chekos authored Sep 27, 2023
2 parents 30782e6 + b417744 commit f16c3cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datawrapper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def create_chart(
self,
title: str = "New Chart",
chart_type: str = "d3-bars-stacked",
data: Union[pd.DataFrame, None] = None,
data: pd.DataFrame | str | None = None,
folder_id: str = "",
organization_id: str = "",
metadata: Optional[Dict[Any, Any]] = None,
Expand All @@ -153,7 +153,7 @@ def create_chart(
chart_type : str, optional
Chart type to be created. See https://developer.datawrapper.de/docs/chart-types, by default "d3-bars-stacked"
data : [type], optional
A pandas DataFrame containing the data to be added, by default None
A pandas DataFrame or string containing the data to be added, by default None
folder_id : str, optional
ID of folder in Datawrapper.de for the chart, table or map to be created in, by default ""
organization_id : str, optional
Expand Down

0 comments on commit f16c3cd

Please sign in to comment.