I am working on a project where I need to collect daily values for variables where each day is in it's own csv named by the date. I want to create a date variable that is based on the file name so that I can combine all of these daily data sets. For some reason, none of the string editing functions in stata are recognized by my version 16 (which is a whole other issue in itself and I haven't been able to find from where I can install these) so I decided to call a python script that can take care of the string editing for me. I can get my variables into stata but I cant find anywhere on the stata documentation for python integration how to actually get the processed text out. I know they can be viewed using python describe but how do I actually access them so I can create the date variable in stata?
Related Posts with Accessing Variables from Python script in Stata
Count with nearstatHi all, My dataset is made up of gasoline stations located by latitude and longitude. These stations…
Generating new variable using subtractionHello! I have data on the year that employees joined a company, startyear. In order to figure out th…
Compare observation to previous ones: Patent DataHello everyone I have an extensive dataset about individual patents (patnum), belonging to a techno…
Generating dummy variables using non-numerical dataHello. I am working with survey data where participants are asked if they agree with a statement, in…
Rendering of Stata homepage in MS EdgeI just noticed that my company browser doesn't render the Stata homepage properly. There is a huge "…
Subscribe to:
Post Comments (Atom)
0 Response to Accessing Variables from Python script in Stata
Post a Comment