Untitled

mail@pastecode.io avatar
unknown
abap
a year ago
366 B
2
Indexable
Never
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)