pandas df number of columns

33

# PANDAS: get column number from colomn name
dataframe.columns.get_loc("<col_name>")
df.shape[1]

Comments

Submit
0 Comments