influxdb-python
influxdb-python copied to clipboard
Writing a Dataframe to InfluxDB: ValueError
I'm trying to write a simple dataframe into influx:
| Index | Tag 1 | Field 1 | Field 2 |
|---|
I have checked various documentation, tried a number of "solutions" but I continue to get errors.
data_frame['index'] = pd.to_datetime(data_frame['index'])
data_frame = data_frame.set_index('index')
client.write_points(data_frame, 'measurement', tags = { 'ID': data_frame[['ID']] })
I get the following error: ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
Anyone know of a solution?
@Karan-M-Shah thank you for opening this! I think we might need some help from the community to solve this. You might also try our Community Slack https://influxdata.com/slack if you haven't already.
same problem here!
Thanks @Karan-M-Shah and @galgal770, this does seem like a bug. I'll look into this for our v5.3.1 point release!
Same problem here! When v5.3.1 will be available?
Hi @sebito91
Is this issue fixed? If not, can you suggest a work around on this issue, I'm also facing the same issue #866 .
Hi i have the some issue on v5.3.1 ... any progress ?
Did someone find a solution? I have the same problem.
Did someone find a solution? I have the same problem.
I was obligated to downgrade to the previous version.