# How can I query a Point by influxdb-client-python?

**URL:** <https://community.influxdata.com/t/how-can-i-query-a-point-by-influxdb-client-python/14432>\
**Category:** InfluxDB 2\
**Tags:** influxdb, query\
**Created:** [May 20, 2020, 5:28am UTC](https://community.influxdata.com/t/how-can-i-query-a-point-by-influxdb-client-python/14432 "2020-05-20T05:28:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GF-Huang](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/gf-huang/32/4929_2.png) [@GF-Huang](https://community.influxdata.com/u/GF-Huang)\
**Post date:** [May 20, 2020, 5:28am UTC](https://community.influxdata.com/t/how-can-i-query-a-point-by-influxdb-client-python/14432/1 "2020-05-20T05:28:46Z")

</div>

I’m using [influxdb-client-python](https://github.com/influxdata/influxdb-client-python).

I want to query a Point at a timestamp, in other words, merge multiple field values into one record(row, object) inside the result table, so I can access its values via `row.field_name_1`, `row.field_name_2`…

How can I do that?

---

<div class="post-metadata">

**Author:** ![bednar](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/bednar/32/3690_2.png) [@bednar](https://community.influxdata.com/u/bednar)\
**Post date:** [May 20, 2020, 10:55am UTC](https://community.influxdata.com/t/how-can-i-query-a-point-by-influxdb-client-python/14432/2 "2020-05-20T10:55:50Z")

</div>

Hi @GF-Huang

Did you try the [pivot function](https://v2.docs.influxdata.com/v2.0/reference/flux/stdlib/built-in/transformations/pivot/)?

Regards.

---

<div class="post-metadata">

**Author:** ![GF-Huang](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/gf-huang/32/4929_2.png) [@GF-Huang](https://community.influxdata.com/u/GF-Huang)\
**Post date:** [May 20, 2020, 11:45am UTC](https://community.influxdata.com/t/how-can-i-query-a-point-by-influxdb-client-python/14432/3 "2020-05-20T11:45:03Z")

</div>

Yes, it’s what I need, thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/3X/2/f/2feb065bdfd5e4b7728243aa3b9192ad3e8447c1.png) [@system](https://community.influxdata.com/u/system)\
**Post date:** [May 20, 2020, 12:45pm UTC](https://community.influxdata.com/t/how-can-i-query-a-point-by-influxdb-client-python/14432/4 "2020-05-20T12:45:19Z")

</div>

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.
