Skip to content

errors saving dataframes since 1.8.0 #118

Closed
@mihailescu2m

Description

@mihailescu2m

I am saving a pandas dataframe like this:

db = InfluxDBClient(url=config.DB_URL, token=config.DB_TOKEN, org=config.DB_ORG
db_write_api = db.write_api()
db_write_api.write(config.DB_BUCKET, record=df, data_frame_measurement_name=price_history)
db_write_api.__del__()
db.__del__()

With 1.7.0 it worked well.
With 1.8.0 I am getting errors about the date:

The batch item wasn't processed successfully because: (400)
Reason: Bad Request
HTTP response headers: HTTPHeaderDict({'Content-Type': 'application/json; charset=utf-8', 'X-Platform-Error-Code': 'invalid', 'Date': 'Sat, 27 Jun 2020 21:50:02 GMT', 'Transfer-Encoding': 'chunked'})
HTTP response body: {"code":"invalid","message":"unable to parse 'price_history daily_charge=106.660794520548,actual_kw_price=4.4495000000000005,forecast_kw_price=nan,actual_general_use=21.906245000000002,forecast_general_use=nan,actual_controlled_load=15.229245000000002,forecast_controlled_load=nan,actual_fit=-6.999245000000001,forecast_fit=nan,actual_renewables=25.036933442426097,forecast_renewables=nan 1593207000000000000': invalid number\nunable to parse 'price_history ..... [error continues for each row]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions