Hello @Nitesh,
Before we dive in, may I ask what version of influx are you using? Would you be open to using the the csv write command to write directly to your influxdb instance?
It looks like you’re using the old client that isn’t supported. I highly recommend using this client instead which allows you to write dataframes directly to influxdb. You can include another column in your dataframe with the tag you want.
"""
Write Pandas DataFrame
"""
_now = pd.Timestamp().now('UTC')
_data_frame = pd.DataFrame(data=[["coyote_creek", 1.0], ["coyote_creek", 2.0]],
index=[now, now + timedelta(hours=1)],
columns=["location", "water_level"])
_write_client.write(bucket.name, record=data_frame, data_frame_measurement_name='h2o_feet',
data_frame_tag_columns=['location'])