Skip to content

Commit d671822

Browse files
authored
Merge pull request influxdata#530 from xginn8/fix_528
replace dataframe.ix with dataframe.iloc. fixes influxdata#528
2 parents f8bba58 + 4d9564a commit d671822

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

influxdb/_dataframe_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def write_points(self,
8686

8787
if protocol == 'line':
8888
points = self._convert_dataframe_to_lines(
89-
dataframe.ix[start_index:end_index].copy(),
89+
dataframe.iloc[start_index:end_index].copy(),
9090
measurement=measurement,
9191
global_tags=tags,
9292
time_precision=time_precision,
@@ -95,7 +95,7 @@ def write_points(self,
9595
numeric_precision=numeric_precision)
9696
else:
9797
points = self._convert_dataframe_to_json(
98-
dataframe.ix[start_index:end_index].copy(),
98+
dataframe.iloc[start_index:end_index].copy(),
9999
measurement=measurement,
100100
tags=tags,
101101
time_precision=time_precision,

influxdb/influxdb08/dataframe_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def write_points(self, data, *args, **kwargs):
5959
self._convert_dataframe_to_json(
6060
name=key,
6161
dataframe=data_frame
62-
.ix[start_index:end_index].copy(),
62+
.iloc[start_index:end_index].copy(),
6363
time_precision=time_precision)]
6464
InfluxDBClient.write_points(self, outdata, *args, **kwargs)
6565
return True

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy