Quantcast
Channel: The Stata Blog - Latest Comments
Viewing all articles
Browse latest Browse all 1129

Re: Stata/Python integration part 6: Working with APIs and JSON data

$
0
0

Hi Chunk, this is super helpful.

I'm trying to follow it step by step and extract NDC codes for a specific drug from openFDA, I was able to print the "results" part (screenshot 1) but got stuck at the step of converting it to a Python df (screenshot 2, no output) and stata dataset (screenshot 3, error message). My guess is the drug/ndc has more nesting than the adverse event example here?

Could you give me any tips on how to select certain keys like ndc code, and product form from the nested elements?

Any suggestion is greatly appreciated!
Many thanks!

https://uploads.disquscdn.c...https://uploads.disquscdn.c...

https://uploads.disquscdn.c...


Viewing all articles
Browse latest Browse all 1129

Trending Articles