I got json data like this:
"data": [
{
"currency": "CNY",
"standardDate": "2021-03-31T00:00:00+08:00",
"reportDate": "2021-04-26T00:00:00+08:00",
"reportType": "first_quarterly_report",
"q": {
"ps": {
"np": {
"t": 773183901
}
}
},
"date": "2021-03-31T00:00:00+08:00",
"stockCode": "300413"
}
],
"data":["Like Above"] many times
when I use pd.DataFrame to get a df
, the column 'q'
value shows this:
q
{'ps': {'np': {'t': 773183901}}}
{'ps': {'np': {'t': 773183901}}}
{'ps': {'np': {'t': 773183901}}}
{'ps': {'np': {'t': 773183901}}}
how can I only get the number cleverly in the 'q'
column ?
q
773183901
773183901
773183901
773183901