Skip to content

Commit 06fe353

Browse files
committed
Revert "Stop inferring datatypes of columns with pandas"
This reverts commit 99acee2.
1 parent 99acee2 commit 06fe353

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

custom-recipes/to-excel/recipe.py

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

10+
from pathvalidate import ValidationError, validate_filename
11+
1012
import dataiku
1113
from dataiku.customrecipe import get_input_names_for_role
1214
from dataiku.customrecipe import get_output_names_for_role
1315
from dataiku.customrecipe import get_recipe_config
14-
from pathvalidate import ValidationError, validate_filename
1516

1617
from xlsx_writer import dataframes_to_xlsx
1718

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

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

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

0 commit comments

Comments
 (0)