Write the code segment to list the following, from Dataframe namely sales. (a) List only columns ‘Item’ and ‘revenue’ (b) List rows from 3 to 7 (c) List the value of cell in 5th row, ‘Item’ column. / Sumita Arora Solution / By Sanjay Kumar Ans:(a)print(df[[‘Item’,’revenue’]) (b)print(df.loc(3:8)) (c)print(df.Item[5])
Name some common data structures of Python’s Pandas library. Python Pandas, Sumita Arora Solution / By Sanjay Kumar