This is an automated email from the ASF dual-hosted git repository. johnbodley pushed a commit to branch john-bodley--fix-pandas-dataframe-to-csv in repository https://gitbox.apache.org/repos/asf/superset.git
commit 64dec4bb3552ba62b8693a6b1f2064f8353dd51f Author: John Bodley <[email protected]> AuthorDate: Tue May 28 23:17:37 2024 -0700 fix: Workaround for Pandas.DataFrame.to_csv bug --- superset/utils/csv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/utils/csv.py b/superset/utils/csv.py index 08848adde5..bf5045728d 100644 --- a/superset/utils/csv.py +++ b/superset/utils/csv.py @@ -78,7 +78,7 @@ def df_to_escaped_csv(df: pd.DataFrame, **kwargs: Any) -> Any: if isinstance(value, str): df.at[idx, name] = escape_value(value) - return df.to_csv(**kwargs) + return df.to_csv(escapechar="\\", **kwargs) def get_chart_csv_data(
