Community Conundrum 25: Feature Visualization is now live! Read More

Python recipes / plugins changing integers to floats

Level 2
Python recipes / plugins changing integers to floats
Is there an easy way to avoid that python recipes change the data types from all integers to floats?
0 Kudos
1 Reply
Dataiker
Dataiker

Hello,



For controlling the column types in pandas dataframes, you can deactivate the "infer_with_pandas" option in the get_dataframe() method on the input dataset(s). You can find more information on this documentation:



https://doc.dataiku.com/dss/latest/api/python/datasets.html#dataiku.Dataset.get_dataframe



Cheers,



Alex

0 Kudos
Labels (3)