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

Pandas 2.1 has a deprecation warning for convert_dtype on read_frame #156

Closed
bixbyr opened this issue Nov 12, 2023 · 7 comments
Closed

Pandas 2.1 has a deprecation warning for convert_dtype on read_frame #156

bixbyr opened this issue Nov 12, 2023 · 7 comments

Comments

@bixbyr
Copy link
Contributor

bixbyr commented Nov 12, 2023

Calling read_frame has a deprecation warning

.../python3.11/site-packages/django_pandas/utils.py:51: FutureWarning: the convert_dtype parameter is deprecated and will be removed in a future version. Do ser.astype(object).apply() instead if you want convert_dtype=False.
cache_keys = pk_series.apply(

@jacksund
Copy link

Just to add to this, I'm seeing another deprecation warning in the django_pandas.io module:

...\site-packages\django_pandas\io.py:84: FutureWarning: unique with argument that is not not a Series, Index, ExtensionArray, or np.ndarray is deprecated and will raise in a future version.
fieldnames = pd.unique(fieldnames)

@fcoppey
Copy link

fcoppey commented Jan 12, 2024

is anyone able to update the package with the fixes?

@bixbyr
Copy link
Contributor Author

bixbyr commented Feb 1, 2024

I wrote a fix which seems to take care of it #158. If there are issues let me know.

@EAItaly
Copy link

EAItaly commented Feb 8, 2024

Hi, I've a similar question. Using tkinter with Python 3.12.2 under Windows, I receive the message:
"Warning (from warnings module):
File "C:\Users\[***]\Python312\Lib\tkinter\_init-.py", line 1967
return self.func(*args)
FutureWarning: the convert_dtype parameter is deprecated and will be removed in a future version. Do ser.astype(object).apply() instead if you want convert_dtype=False."
So, I think also tkinter needs to be updated. Any comment?
Thanks.

@bixbyr
Copy link
Contributor Author

bixbyr commented Feb 8, 2024

I need to modify my patch request because the test suite in Django-pandas used an internal testing method in pandas which was removed in 2.2. Just been really busy, I'm trying to get to it.

@bixbyr
Copy link
Contributor Author

bixbyr commented Apr 1, 2024

Now that the fix has been merged is there going to be a release so people can use the latest version via standard python tooling like pip?

@chrisdev
Copy link
Owner

chrisdev commented Apr 4, 2024

First Release to PyPi version 0.6.7 via the workflow

@chrisdev chrisdev closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants