Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
761 views
in CBSE by (15 points)
23.  Consider the following tables item and customer and answer the questions that follow :

Table:Item

ItemID                ItemName                   Manufacturer                          Price

PC01                   Personal Computer      HCL India                              42000

LC05                   Laptop                         HP USA                                  55000

PC03                   Personal Computer      Dell USA                                32000

PC06                   Personal Computer      Zenith USA                            37000

LC03                   Laptop                         Dell USA                                57000

Table : Customer

ItemID                CustomerName                       City

LC03                   N Roy                                     Delhi

PC03                   H Singh                                   Mumbai

PC06                   R Pandey                                Delhi

LC03                   C Sharma                                Chennai

PC01                   K Agarwal                              Bengaluru

Assume that the pandas has been imported as pd.

a.       Create a Dataframe called df1 for table Item and df2 for table Customer.

b.      Perform the default join operation on itemID using two dataframes : df1,df2

c.       Perform the right join operation on itemID using two dataframes : df1,df2

d.      Perform the default operation on itemID using two dataframes : df1,df2 with the left index as true.

e.       Perform the outer join operation on itemID using two dataframes : df1,df2

Please log in or register to answer this question.

Related questions

0 votes
1 answer
asked Mar 30 in CBSE by Manishameena (15 points)
0 votes
1 answer
asked Mar 3 in CBSE by OK BRO (20 points)
0 votes
2 answers
0 votes
1 answer
asked Nov 1, 2023 in CBSE by Abhishekabhi (10.7k points)

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...