pandas drop row by index labels code example Example: drop columns pandas df.drop(columns=['B', 'C'])