1
27/11/2022 11:08 am
Topic starter
Write a code statement to list the value of a cell in the 5th row and “item”column from a dataframe “sales”.
This topic was modified 3 years ago by CodeWithBishal-admin
1 Answer
1
27/11/2022 11:09 am
Topic starter
import pandas as pd
salesDict = {
'item':["A","B","C","D","E","F"],
'sales':[10,12,50,10,5,90]
}
sales = pd.DataFrame(salesDict)
print(sales.item[4]) #for fifth row
This post was modified 3 years ago 3 times by CodeWithBishal-admin