fix: set columns numeric datatypes when exporting to excel (#27229)

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
This commit is contained in:
squalou
2024-08-23 09:39:47 +02:00
committed by GitHub
parent 9d5268ab6d
commit ce72a0ac27
5 changed files with 90 additions and 8 deletions

View File

@@ -107,7 +107,7 @@ def _get_full(
payload["colnames"] = list(df.columns)
payload["indexnames"] = list(df.index)
payload["coltypes"] = extract_dataframe_dtypes(df, datasource)
payload["data"] = query_context.get_data(df)
payload["data"] = query_context.get_data(df, payload["coltypes"])
payload["result_format"] = query_context.result_format
del payload["df"]