python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Reading and extracting files from a directory using SAS
I have a directory /run/return/files/archives/prep/share/ that contains both .txt and .csv files.
For example IA_PROD.txt and retour_PROD.csv
I want to read both types of files and extract only their ...
missy
Votes: 0
Answers: 2
Insert multiple columns into a single column using pandas
I am converting a SAS code to python and got stuck here.
My input table is like:-
St
sgmt
Val
A
CD
200
A
PQ
300
My output should be like:-
Col
Val
A
500
CD
200
PQ
300
500...
user18734161
Votes: 0
Answers: 1
Assign groups based on variables
In SAS, I have a dataset(have) as below, I need to add a group variable based on test and visitnum. When visitnum is 101 and 108, they need to be in the same group. The desired as shown as data want.
...
Jill
Votes: 0
Answers: 1