Hi, I have a project using python, With using pandas, i have three columns in excel sheet: intents, response, examples. i want to remove the duplicated rows but keep two rows of one intents. for example: i have an intent name: Advising, which has multiple responses and multiple examples, i want to keep the first two and remove the rest. and also i want to do the same with all the intents i have..
Hi, I have a project using python, With using pandas, i have three columns in excel sheet: intents, response, examples. i want to remove the duplicated rows but keep two rows of one intents. for example: i have an intent name: Advising, which has multiple responses and multiple examples, i want to keep the first two and remove the rest. and also i want to do the same with all the intents i have..
Chapter7: Developing An Excel Application
Section: Chapter Questions
Problem 3RA
Related questions
Question
Hi,
I have a project using python,
With using pandas, i have three columns in excel sheet: intents, response, examples.
i want to remove the duplicated rows but keep two rows of one intents.
for example:
i have an intent name: Advising, which has multiple responses and multiple examples, i want to keep the first two and remove the rest.
and also i want to do the same with all the intents i have..
![9
Ready
xfx
A
Intent
C
Response
Examples
2 Advising when to delete a course?
respone 1
3 Advising how I contact my advisor?
respone 2
respone 3
4 Advising how to know my interests earlier ?
5 Advising whats the date of adding a course?
respone 4
6 Advising how to know who teaches a specific course? respone 5
7 Courses example 1
respones 1
8 Courses example 2
respones 2
9 Courses example 3
respones 3
10 Courses example 4
respones 4
+
Sheet1
B](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F83c28e2d-a015-431c-a272-6452453c4958%2F293b977e-54b6-41f3-90fb-4a77dce2ce97%2Fc5oj1yf_processed.jpeg&w=3840&q=75)
Transcribed Image Text:9
Ready
xfx
A
Intent
C
Response
Examples
2 Advising when to delete a course?
respone 1
3 Advising how I contact my advisor?
respone 2
respone 3
4 Advising how to know my interests earlier ?
5 Advising whats the date of adding a course?
respone 4
6 Advising how to know who teaches a specific course? respone 5
7 Courses example 1
respones 1
8 Courses example 2
respones 2
9 Courses example 3
respones 3
10 Courses example 4
respones 4
+
Sheet1
B
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![Operations Research : Applications and Algorithms](https://www.bartleby.com/isbn_cover_images/9780534380588/9780534380588_smallCoverImage.gif)
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
![Operations Research : Applications and Algorithms](https://www.bartleby.com/isbn_cover_images/9780534380588/9780534380588_smallCoverImage.gif)
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![Enhanced Discovering Computers 2017 (Shelly Cashm…](https://www.bartleby.com/isbn_cover_images/9781305657458/9781305657458_smallCoverImage.gif)
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L