Python Basic Syntax
Python starts index with 0, which means the first element of a list is accessed with index 0.
type() to check the data type of a variable.
For data frames:
-
df.dtypesto check the data types of each column in the data frame. -
df.info()to check the data types of each column and the number of non-null values. -
df.describe()to get summary statistics of the numerical columns in the data frame.