Untitled
unknown
abap
2 years ago
366 B
6
Indexable
import pandas as pd cloth = { 'CName': ['Jeans', 'Jeans', 'Shirt', 'Trouser', 'T-Shirt'], 'Size': ['L', 'XL', 'XL', 'L', 'XL'], 'Price': [1200, 1350, 900, 1000, 600] } row_labels = ['C1', 'C2', 'C3', 'C4', 'C5'] # Delete the data of C3 (C003) from the 'cloth' cloth = cloth.drop('C003') # Print the modified 'cloth' DataFrame print(cloth)
Editor is loading...