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.

Ans:
(a)

print(df[[‘Item’,’revenue’])

(b)
print(df.loc(3:8))

(c)
print(df.Item[5])

error: Content is protected !!