@@ -128,7 +128,7 @@ Please follow the `Installation`_ and then run the following:
128
128
129
129
p = Point(" my_measurement" ).tag(" location" , " Prague" ).field(" temperature" , 25.3 )
130
130
131
- write_api.write(bucket = bucket, org = " my-org " , record = p)
131
+ write_api.write(bucket = bucket, record = p)
132
132
133
133
# # using Table structure
134
134
tables = query_api.query(' from(bucket:"my-bucket") |> range(start: -10m)' )
@@ -435,7 +435,7 @@ The API also support streaming ``FluxRecord`` via `query_stream <https://github.
435
435
_point1 = Point(" my_measurement" ).tag(" location" , " Prague" ).field(" temperature" , 25.3 )
436
436
_point2 = Point(" my_measurement" ).tag(" location" , " New York" ).field(" temperature" , 24.3 )
437
437
438
- write_api.write(bucket = " my-bucket" , org = " my-org " , record = [_point1, _point2])
438
+ write_api.write(bucket = " my-bucket" , record = [_point1, _point2])
439
439
440
440
"""
441
441
Query: using Table structure
@@ -514,7 +514,7 @@ The ``client`` is able to retrieve data in `Pandas DataFrame <https://pandas.pyd
514
514
_point1 = Point(" my_measurement" ).tag(" location" , " Prague" ).field(" temperature" , 25.3 )
515
515
_point2 = Point(" my_measurement" ).tag(" location" , " New York" ).field(" temperature" , 24.3 )
516
516
517
- write_api.write(bucket = " my-bucket" , org = " my-org " , record = [_point1, _point2])
517
+ write_api.write(bucket = " my-bucket" , record = [_point1, _point2])
518
518
519
519
"""
520
520
Query: using Pandas DataFrame
@@ -624,7 +624,7 @@ If you would like to import gigabytes of data then use our multiprocessing examp
624
624
"""
625
625
Write data into InfluxDB
626
626
"""
627
- write_api.write(org = " my-org " , bucket = " my-bucket" , record = data)
627
+ write_api.write(bucket = " my-bucket" , record = data)
628
628
write_api.__del__ ()
629
629
630
630
"""
@@ -634,7 +634,7 @@ If you would like to import gigabytes of data then use our multiprocessing examp
634
634
' |> range(start: 0, stop: now())' \
635
635
' |> filter(fn: (r) => r._measurement == "financial-analysis")' \
636
636
' |> max()'
637
- result = client.query_api().query(org = " my-org " , query = query)
637
+ result = client.query_api().query(query = query)
638
638
639
639
"""
640
640
Processing results
@@ -729,7 +729,7 @@ Efficiency write data from IOT sensor
729
729
Create client that writes data into InfluxDB
730
730
"""
731
731
_write_api = _db_client.write_api(write_options = WriteOptions(batch_size = 1 ))
732
- _write_api.write(org = " my-org " , bucket = " my-bucket" , record = data)
732
+ _write_api.write(bucket = " my-bucket" , record = data)
733
733
734
734
735
735
"""
0 commit comments