Convert query result into different format

Hello, I am using influcDB2.0, and currently I am using Api query. I got the data as a string, and any ideas/functions to convert it to Numpy array? Thank you

Hello @Chuqiao_Yan,
Welcome!
I’d suggest following this blog:

Then I’d use this function:
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_numpy.html