-
Notifications
You must be signed in to change notification settings - Fork 187
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 outputs warning when calling dataframe.append in flux_csv_parser._prepare_data_frame #613
Comments
I wasn't able to replicate this issue. I have tried to run this with |
@Sciator, this warning is a part of the Pandas 2.1. For more info see:
- pandas-dev/pandas#52532
- pandas-dev/pandas#39122
- https://github.com/pandas-dev/pandas/blob/0cbe41ad0bab42fa6fc8694adcf6db3804447740/pandas/core/dtypes/concat.py#L115
… On 26. 10. 2023, at 13:35, Sciator ***@***.***> wrote:
I wasn't able to replicate this issue. I have tried to run this with 2.0.3 and 2.1.1 pandas with no warning.
Could you provide more information (query, data etc.) ?
—
Reply to this email directly, view it on GitHub <#613 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AADPDYJENWP2Z4PVRRNUCLTYBJDIPAVCNFSM6AAAAAA46NILZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBQHE2DAMJTHE>.
You are receiving this because you are subscribed to this thread.
|
pls, it would be great if we have data and the query to reproduce, before we can go on with this issue |
I am seeing this issue as well, do you still need a query to repro this? |
Hi @oskarwilliams, the query and possibly an example of your data in the database would be helpful… Thanks. |
Python 3.12 Query results from InfluxDB Data Explorer Code:
query:
flux_csv_parser.py l.258
I see
so possible solution can look like
but I'm not sure about consequences across all codes |
Specifications
Code sample to reproduce problem
Expected behavior
The query should be executed without warnings.
Actual behavior
Pandas outputs a FutureWarning:
This is related to the this code snippet:
https://github.com/influxdata/influxdb-client-python/blob/aa6e5c4aad1aaf004195c175ebe424ac6040c2e3/influxdb_client/client/flux_csv_parser.py#L243C9-L256
Additional info
In the recent pandas version handling of concatenation of empty dataframes changed, see pandas-dev/pandas#39122. This should be handled else wise to reflect the changes in pandas.
The text was updated successfully, but these errors were encountered: