sfu-db / dataprep

Open-source low code data preparation library in python. Collect, clean and visualization your data in python with a few lines of code.
http://dataprep.ai
MIT License
1.97k stars 201 forks source link

Future Warning: Meta is not valid #945

Open Onur101010 opened 1 year ago

Onur101010 commented 1 year ago

Describe the bug When using clean_country on pd Dataframe with python 3.10 the cleaning process does run but shows the following error message:

C:\ProgramData\Anaconda3\lib\site-packages\dask\dataframe\core.py:6641: FutureWarning: Meta is not valid, map_partitions and map_overlap expects output to be a pandas object. Try passing a pandas object as meta or a dict or tuple representing the (name, dtype) of the columns. In the future the meta you passed will not work. warnings.warn(

To Reproduce Steps to reproduce the behavior: run the function clean_country with pd.dataframe (outputformat "name")

Or:

clean_country(countries, "country", output_format="name")

with countries beeing a pandas Dataframe

Expected behavior Should not lead to the error

Desktop (please complete the following information):

Additional context Problem also exists with clean_email