Skip to content

Commit 99acee2

Browse files
committed
Stop inferring datatypes of columns with pandas
1 parent 88b648d commit 99acee2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

custom-recipes/to-excel/recipe.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@
77
import logging
88
import tempfile
99

10-
from pathvalidate import ValidationError, validate_filename
11-
1210
import dataiku
1311
from dataiku.customrecipe import get_input_names_for_role
1412
from dataiku.customrecipe import get_output_names_for_role
1513
from dataiku.customrecipe import get_recipe_config
14+
from pathvalidate import ValidationError, validate_filename
1615

1716
from xlsx_writer import dataframes_to_xlsx
1817

@@ -54,7 +53,7 @@
5453
tmp_file_path = tmp_file.name
5554
logger.info("Intend to write the output xls file to the following location: {}".format(tmp_file_path))
5655

57-
dataframes_to_xlsx(input_datasets_names, tmp_file_path, lambda name: dataiku.Dataset(name).get_dataframe())
56+
dataframes_to_xlsx(input_datasets_names, tmp_file_path, lambda name: dataiku.Dataset(name).get_dataframe(infer_with_pandas=False))
5857

5958
with open(tmp_file_path, 'rb', encoding=None) as f:
6059
output_folder.upload_stream(output_file_name, f)

0 commit comments

Comments
 (0)