Hi All!
At IKNL we are working on a python wrapper for several OHDSI tools (DatabaseConnector
, FeatureExtraction
, etc.). Currently I am working on the FeatureExtraction module and specifically on the get_db_covariate_data
function. This function should -when finished- return a pandas DataFrame
.
Conversion from the R data.frame
to pandas Dataframe
is easy. However I found that the getDbCovariateData
function outputs a andromeda Table S4 class. I am no where near an R expert, but I was able to create a regular data.frame
from it by simply calling data.frame(andromeda_obj)
. Is this the way? Or is there a beter way to do this?
I found how to construct an Andromeda Table here: Using Andromeda • Andromeda (ohdsi.github.io) so conversion the other way around should be simple.