number of rows and columns in dataset python code example Example: number of column in dataset pandas len(df.columns)