-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: make working with pandas dataframe timestamps easier #438
Comments
Hi @Anaisdg, thanks for the suggestion, we'll take a look. Do you have a sample data? Regards |
In order to use a wider variety of time and date formats, |
Attached is some sample data as requested: |
@rslippert thanks for sharing your data |
Hi @rslippert, with upcoming #440 you will be able to use the following code: import pandas as pd
from influxdb_client import InfluxDBClient
from influxdb_client.client.write_api import SYNCHRONOUS
url = "http://localhost:8086"
token = "my-token"
org = "my-org"
with InfluxDBClient(url=url, token=token, org=org) as client:
data_frame = pd.read_csv("path/to/1dSCCOPLMCOPX.csv")
client \
.write_api(write_options=SYNCHRONOUS) \
.write(bucket="my-bucket",
record=data_frame,
data_frame_measurement_name="scco",
data_frame_timestamp_column="Date",
data_frame_timestamp_timezone="EST") Regards |
I’m impressed by the speed and completeness of this pandas timestamp change. Great job Influx! |
Currently users have to do a bit of timestamp manipulation in order to write pandas DataFrames, for example:

The following features could make working pandas DataFrames easier:
The text was updated successfully, but these errors were encountered: