8000 Merge pull request #260 from tzonghao/fix-pandas-sort-future-warning · awesome-python/influxdb-python@2ace816 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ace816

Browse files
committed
Merge pull request influxdata#260 from tzonghao/fix-pandas-sort-future-warning
Fix pandas sort future warning
2 parents 0539894 + 0c41b04 commit 2ace816

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

influxdb/influxdb08/dataframe_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ def _to_dataframe(self, json_result, time_precision):
105105
dataframe = pd.DataFrame(data=json_result['points'],
106106
columns=json_result['columns'])
107107
if 'sequence_number' in dataframe.keys():
108-
dataframe.sort(['time', 'sequence_number'], inplace=True)
108+
dataframe.sort_values(['time', 'sequence_number'], inplace=True)
109109
else:
110-
dataframe.sort(['time'], inplace=True)
110+
dataframe.sort_values(['time'], inplace=True)
111111
pandas_time_unit = time_precision
112112
if time_precision == 'm':
113113
pandas_time_unit = 'ms'

0 commit comments

Comments
 (0)
0