How do I get the curve data without headers- for Python Scripts
The data comes across as a json object but was wondering how to receive the data straight as a numpy array?
How do I get the curve data without headers- for Python Scripts
The data comes across as a json object but was wondering how to receive the data straight as a numpy array?
Hi @vinaya.shetty0 ,
Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.
Thanks,
AHS
Hi,
Please be informed that a reply has been verified as correct in answering the question, and marked as such.
Thanks,
AHS
Hi @vinaya.shetty0 ,
From the JSON result returned from RDMS, it can be tranformed to numpy array with the Pandas DataFrame constructor as below
import pandas as pd
pd.DataFrame(d).values
The .values
part on the end converts the result to a NumPy array, which is what you asked for. Some people would just work directly with the DataFrame instead.