Open arfriedman opened 2 years ago
Hi @arfriedman. Thank you for using our library and reporting the issue.
Actually, others also encountered the similar issue in #903 and give the solution in stackoverflow (https://stackoverflow.com/questions/72453608/dataprep-eda-typeerror-please-provide-npartitions-as-an-int-or-possibly-as-non), and we already refined this issue in current develop branch. You can install the develop branch version with:
pip install -U git+https://github.com/sfu-db/dataprep.git@develop
Both way can solve the issue you encountered.
Hi @arfriedman. Thank you for using our library and reporting the issue.
Actually, others also encountered the similar issue in #903 and give the solution in stackoverflow (https://stackoverflow.com/questions/72453608/dataprep-eda-typeerror-please-provide-npartitions-as-an-int-or-possibly-as-non), and we already refined this issue in current develop branch. You can install the develop branch version with:
pip install -U git+https://github.com/sfu-db/dataprep.git@develop
Both way can solve the issue you encountered.
Thank you @qidanrui
I installed dataprep 0.4.5, which solves the problem above -- thank you! However, it now returns the following warning:
import pandas as pd
from dataprep.clean import clean_lat_long
df = pd.DataFrame({'coord': ['51° 29′ 36.24″ N, 0° 0′ 35.28″ E', '51.4934° N, 0.0098° E']})
clean_lat_long(df, 'coord', split=True)
/home/andrew/miniconda3/envs/AQUATIC/lib/python3.10/site-packages/dask/dataframe/core.py:6604: 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(
Latitude and Longitude Cleaning Report:
2 values cleaned (100.0%)
Result contains 2 (100.0%) values in the correct format and 0 null values (0.0%)
Out[5]:
coord latitude longitude
0 51° 29′ 36.24″ N, 0° 0′ 35.28″ E 51.4934 0.0098
1 51.4934° N, 0.0098° E 51.4934 0.0098
Do you know how to address this warming?
Unfortunately, clean_lat_lon returns an error in dataprep 0.4.3a1 with python 3.10.4.
The problem occurs for me using the documentation example:
It returns this error:
I encounter the problem both in the version from conda-forge on linux and also pip on windows.
Thanks much, Andrew