Mar-26-2019, 01:47 PM
I am newcomer in Python, I am expert in SAS, I have heard that Python is much more ... better than SAS.
I am now trying to create in Python product doing the same as multi-module product in SAS, performing complex iterative process involving matrix operations with huge matrices. The first step is to read data from SAS data set, with "where" clause.
In SAS this step could be written very shortly and in easy-to-interpret way:
data aaa; set &dsin_ext(where=(&where));
if (&year_min<=year<=&year_max) and
(&age_min <=age <=&age_max );
zvar=&&&mapin<ype;
run;
I have constructed Python code for this, however it looks so cumbersome. Could someone draft the same in short and nice way.
Thanks.
I am now trying to create in Python product doing the same as multi-module product in SAS, performing complex iterative process involving matrix operations with huge matrices. The first step is to read data from SAS data set, with "where" clause.
In SAS this step could be written very shortly and in easy-to-interpret way:
data aaa; set &dsin_ext(where=(&where));
if (&year_min<=year<=&year_max) and
(&age_min <=age <=&age_max );
zvar=&&&mapin<ype;
run;
I have constructed Python code for this, however it looks so cumbersome. Could someone draft the same in short and nice way.
Thanks.