Computer Science, asked by Yaman7565, 5 months ago

Import pandas as pd data = [{'rollno': 1, 'name': 'shyam', 'marks':60 }, {'rollno': 2, 'name': 'kamal', 'marks':70 }, {'rollno': 5, 'name': 'sheela', 'marks':30 }] df1 = pd.dataframe(data, columns=['rollno', 'name']) df2 = pd.dataframe(data, index=['rollno', 'name', 'marks'], columns=['rollno', 'marks']) print(df1) print(df2)

Answers

Answered by Anonymous
11

Answer:

Select 'name' and 'score' columns in rows 1, 3, 5, 6 from the following data frame. exam_data = {'name': ['Anastasia', 'Dima', 'Katherine ', ' ...

Similar questions