Some Practice Question
Some Practice Question
Q2.
Ans-
b) Write a statement to display all the information from Employee ids ‘E102’ to ‘E104’ (Both
are included)
ans
or
Or
c) Write a statement to display the employee’s name, designation and salary for those having
employee ids as ‘E101′ and ‘E103’.
Ans-
Question : Given a DataFrame namely “data”. Write the code for the following commands
a) Find all rows with the label “Pencil”. Extract all columns
Ans-
Ans-
Ans-
Ans-del employee[“price”]
Ans-employee=employee.drop([“pen”,”eraser”])