it is also possible to use crosstab to cross tabulate between two or more variablesgiving contingency table cross tabulate pd crosstab nutri gender nutri situation situation gender female male couple family single we seefor examplethat the proportion of single men is substantially smaller than the proportion of single women in the data set of elderly people to add row and column totals to tableuse margins=true pd crosstab nutri gender nutri situation margins =truesituation gender female male all couple family single all summary statistics in the followingx [ xn ]is column vector of numbers for our nutri datathe vector couldfor examplecorrespond to the heights of the individuals the sample mean of xdenoted by xis simply the average of the data valuessample mean xi xn = using the mean method in python for the nutri datawe havefor instancenutri ['height 'mean ( the -sample quantile ( of is value such that at least fraction of the data is less than or equal to and at least fraction of the data is greater than or equal to the sample median is the sample -quantile the -sample quantile is also called the percentile the and sample percentiles are called the firstsecondand third quartiles of the data for the nutri data they are obtained as follows nutri ['height 'quantile ( =[ , , ] sample quantile sample median quartiles