questdb / py-questdb-client

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

remove single code from python example doc. #41

Closed rmalpe closed 11 months 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 11 months ago

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