Project Based Viva Questions IP
Project Based Viva Questions IP
INFORMATICS PRACTICES
1
Q6. How do you write data from dataframe to CSV file?
Ans. Dataframe.to_csv("IndianFood.csv")
Q7. What all operations are you performing on the dataframe?
Ans
1. Add Data
2. Modify Data
3. Delete Data
4. Search Data
5. Visualize Data
6. Analyse Data
Commands Explanation
inplace=True Perform the changes in
the same dataframe, do
not create a new
dataframe
countrec=IndianFood.shape[0] this will give total
number of rows present
in the database
IndianFood.loc[IndianFood['diet']==die].cook_time This will display
cook_time of those
records where the “diet”
column has values equal
to die. Here die is a
value inputted by the
user.