Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Future Warning: Meta is not valid #945

Open
Onur101010 opened this issue Nov 16, 2022 · 0 comments
Open

Future Warning: Meta is not valid #945

Onur101010 opened this issue Nov 16, 2022 · 0 comments
Assignees
Labels
type: bug Something isn't working

Comments

@Onur101010
Copy link

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):

  • OS: Windows 10
  • Browser: Mozilla
  • Platform: Jupyter Notebook and also testet on Python Script
  • Python Version 3.9.12
  • Dataprep Version 0.4.5

Additional context
Problem also exists with clean_email

@Onur101010 Onur101010 added the type: bug Something isn't working label Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants