Skip to content

Commit aa9aace

Browse files
committed
Update DataFrameClient example.
1 parent 62f7426 commit aa9aace

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/tutorial_pandas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ def main(host='localhost', port=8086):
2020
client.create_database(dbname)
2121

2222
print("Write DataFrame")
23-
client.write_points({'demo': df})
23+
client.write_points(df, 'demo')
2424

2525
print("Write DataFrame with Tags")
26-
client.write_points({('demo', (('k1', 'v1'), ('k2', 'v2'))): df})
26+
client.write_points(df, 'demo', {'k1': 'v1', 'k2': 'v2'})
2727

2828
print("Read DataFrame")
2929
client.query("select * from demo")

0 commit comments

Comments
 (0)