import pandas as pd
# Creating the dataset
data = {
'Name': ['Rachel', 'Ross', 'Monica', 'Chandler', 'Phoebe', 'Joey'],
'Age': [30, 32, 31, 33, 34, 31],
'Profession': ['Fashion Designer', 'Paleontologist', 'Chef', 'Advertiser', 'Musician', 'Actor'],
'Favorite_Coffee': ['Latte', 'Black Coffee', 'Cappuccino', 'Espresso', 'Herbal Tea', 'Mocha']
}
df = pd.DataFrame(data)
# Changing the index to 'A', 'B', 'C', etc.
df.index = ['A', 'B', 'C', 'D', 'E', 'F']
print("Original Dataset:")
print(df)
# Drop the 1st and 3rd columns (index 0 and 2)
df_dropped = df.drop(df.columns[[0, 2]], axis=1)
print(df_dropped)