Unit-2-Data Handling using
Pandas-II
Descriptive Statistics
Statistics is a branch of mathematics that deals with
collecting, interpreting, organization and interpretation of
data. Descriptive statistics involves summarizing and organizing
the data so that it can be easily understood.
CREATED BY: SACHIN BHARDWAJ, PGT (CS) KV NO.1 TEZPUR, MR. VINOD KUMAR VERMA,
PGT (CS) KV OEF KANPUR
, For More Updates Visit: www.python4csip.com
max()
It returns the maximum value from a column of a data frame or series.
Syntax-
df[‘columnname’].max()
Or
df.max(axis=0) returns the maximum value of every column
Or
df.max(axis=1) returns the maximum value of every row
CREATED BY: SACHIN BHARDWAJ, PGT (CS) KV NO.1 TEZPUR, MR. VINOD KUMAR VERMA,
PGT (CS) KV OEF KANPUR
, For More Updates Visit: www.python4csip.com
min()
It returns the minimum value from a column of a data frame or series.
Syntax-
df[‘columnname’].min()
Or
df.min (axis=0) returns the minimum value of every column
Or
df.min(axis=1) returns the minimum value of every row
CREATED BY: SACHIN BHARDWAJ, PGT (CS) KV NO.1 TEZPUR, MR. VINOD KUMAR VERMA,
PGT (CS) KV OEF KANPUR
, For More Updates Visit: www.python4csip.com
3-count()
It returns the number of values present in a column of a data frame or
series.
Syntax-
df[‘columnname’].count()
Or
df.count(axis=0) returns the number of value in each column
Or
df.count(axis=1) returns the number of value in each row
CREATED BY: SACHIN BHARDWAJ, PGT (CS) KV NO.1 TEZPUR, MR. VINOD KUMAR VERMA,
PGT (CS) KV OEF KANPUR