Skip to content

fix: multiple dataframes for tables with different schema #385

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

Merged
merged 1 commit into from
Dec 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions influxdb_client/client/query_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def query_data_frame(self, query: str, org=None, data_frame_index: List[str] = N
"""
Execute synchronous Flux query and return Pandas DataFrame.

Note that if a query returns more then one table than the client generates a DataFrame for each of them.
Note that if a query returns tables with differing schemas than the client generates
a DataFrame for each of them.

:param query: the Flux query
:param str, Organization org: specifies the organization for executing the query;
Expand All @@ -157,7 +158,8 @@ def query_data_frame_stream(self, query: str, org=None, data_frame_index: List[s
"""
Execute synchronous Flux query and return stream of Pandas DataFrame as a Generator['pd.DataFrame'].

Note that if a query returns more then one table than the client generates a DataFrame for each of them.
Note that if a query returns tables with differing schemas than the client generates
a DataFrame for each of them.

:param query: the Flux query
:param str, Organization org: specifies the organization for executing the query;
Expand Down