0% found this document useful (0 votes)
14 views3 pages

Project Based Viva Questions IP

Uploaded by

minijoseph936
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

Project Based Viva Questions IP

Uploaded by

minijoseph936
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Project Based Viva Questions

INFORMATICS PRACTICES

Q1. What is your project about?


Ans.
1. Project Title
2. Project Objective
3. Technology stack used-
a. Python- list of libraries used and functions of libraries
b. MySQL
4. Methodology – Downloaded CSV file from net, transported data from CSV
file to DataFrame, Performed operations on DataFrame, Transported data
from DataFrame to CSV file
Q2. What is the need of transporting data from CSV to dataframe and vice
versa?
Ans. It is because we can perform different kind of operations can be easily
performed using dataframes.
Q3. What is the meaning of – while True loop?
Ans. While-True loop is an infinite loop because it does not have any condition.
It will run endlessly. To end this loop we have used BREAK statement.
We have used this loop because we do not know how many times the user is
going to execute a particular operation. We can use other loop also like if there
are 7 options in our menu we can use
While choice>=1 and choice<=7
Q4. From where have you taken CSV file?
Ans We have downloaded it from Kaggle.com
Q5. How do you read data from CSV file to dataframe?
Ans. Dataframe=pd.read_csv("IndianFood.CSV")

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

Q8. What is the purpose of –

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.

This will first filter all


the records where the
“diet” column of
dataframe df1 has value
equal to die. Then it will
display cook_time of
those records.
2
Another example ItemName Quantity
import pandas as pd 0 Pen 40
d1={"ItemName":pd.Series(["Pen","Pencil", 1 Pencil 42
"Copy","Eraser", "Scale"]), 2 Copy 35
"Quantity":pd.Series([40,42,35,50,75])} 3 Eraser 50
df1=pd.DataFrame(d1) 4 Scale 75
print(df1)
print(df1.loc[df1['Quantity']==50].ItemName) 3 Eraser

You might also like