questdb / py-questdb-client

Python client for QuestDB InfluxDB Line Protocol
https://py-questdb-client.readthedocs.io
Apache License 2.0
55 stars 10 forks source link

remove single code from python example doc. #41

Closed rmalpe closed 1 year ago

rmalpe commented 1 year ago

import pandas as pd from questdb.ingress import Sender

df = pd.DataFrame({ 'id': pd.Categorical(['toronto1', 'paris3']), 'temperature': [20.0, 21.0], 'humidity': [0.5, 0.6], 'timestamp': pd.to_datetime(['2021-01-01', '2021-01-02'])'})

with Sender('localhost', 9009) as sender: sender.dataframe(df, table_name='sensors')

amunra commented 1 year ago

Oops! Thanks for the catch!

amunra commented 1 year ago

Done here: https://github.com/questdb/py-questdb-client/pull/48