-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
FutureWarning: Downcasting object dtype arrays #103
Comments
Will do a release soon than cleans up warnings like this. Thanks for reporting |
What is your pandas version?
The problem relates to an error that happened with older versions of pandas that I had to conditionally handle. I will likely have to require a pandas version >= 2.1.0 in a future release |
My pandas version is 2.2.2 |
I added what I think will be a fix, since I cannot reproduce. Currently I'm preparing a release and it will be included with it .. likely in a couple of days |
Thank you very much. I will check if I still face the similar warning and let you know accordingly. |
Is FutureWarning: Downcasting object dtype arrays still an issue? |
Sorry for the late response. I just checked by running the code to get all filings in 2023, and unfortunately, the message is still persisting.
|
Hello,
When I was downloading the filings, I received this message.
It seems the warning came from the htmltools.py. Could you advise if there is any potential issue?
/opt/anaconda3/lib/python3.12/site-packages/edgar/htmltools.py:259: FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To opt-in to the future behavior, set
pd.set_option('future.no_silent_downcasting', True)chunk_df.Item = chunk_df.Item.ffill()
The text was updated successfully, but these errors were encountered: