We start with a DataFrame having columns A, B, and C and rows indexed 0, 1, 2. To remove columns or rows, we use the drop() method. We specify the labels to remove and the axis: axis=1 for columns, axis=0 for rows. For example, dropping column 'B' with df.drop('B', axis=1) returns a new DataFrame without 'B'. If we want to remove rows, we specify row labels and axis=0. We can drop multiple labels by passing a list. By default, drop() returns a new DataFrame and does not change the original. To change the original DataFrame, we use inplace=True. This method helps clean data by removing unwanted rows or columns easily.