(Jun-21-2018, 07:22 AM)Scott Wrote: I mainly use SAS and it has a procedure called proc freq which lists the contents of a variable and how frequently it is populated. Does python have anything similar?Variable may not the right word to use if talking about Python,value in a dataset may fit better.
SAS Wrote:Proc FREQ is a procedure that is used to give descriptive statistics about a particular data set.So with this info about what proc freq dos,then will Pandas fit this description right on.
Proc FREQ is widely used to analyze healthcare datasets and
demographic databanks that contain specific information about individuals and their activities
Pandas is used for this a lot,eg load a datasets and doing stuff like frequency count.
# SAS proc freq data=mydata; tables myvar / nocol nopercent nocum; run; # Pandas mydata.myvar.value_counts().sort_index()