Skip to content

add axis = 1 to drop

Valentin Böhmer requested to merge Valentin into main

By default, the drop() function uses axis=0, which refers to the rows of the DataFrame.To tell pandas to look at the columns instead, we must specify axis=1.

Merge request reports