14 lines
537 B
Text
14 lines
537 B
Text
Fix FutureWarning from pandas.
|
|
|
|
Index: influxdb/_dataframe_client.py
|
|
--- influxdb/_dataframe_client.py.orig
|
|
+++ influxdb/_dataframe_client.py
|
|
@@ -305,7 +305,7 @@ class DataFrameClient(InfluxDBClient):
|
|
'time': np.int64(ts.value / precision_factor)}
|
|
for ts, tag, (_, rec) in zip(
|
|
dataframe.index,
|
|
- dataframe[tag_columns].to_dict('record'),
|
|
+ dataframe[tag_columns].to_dict('records'),
|
|
dataframe[field_columns].iterrows()
|
|
)
|
|
]
|