SlideShare une entreprise Scribd logo
1  sur  1
#Q10:** -Create a function called theme_by_year that takes as input a year (as an integer) and
shows the theme ids and theme names (listed in order by theme id) that were in sets that year.
The column names must be id and name_themes (to differentiate between the name of a theme
and the name of a set) in that order.
The index should be reset and go from 0 to n-1.
Each theme should only be listed once even if it appeared in more than one set from that year --
duplicate themes should be based on theme id and not name since there are some themes with the
same name but with a different id.
Hint: It will help if you were to think about merging appropriate DataFrames to help you get this
answer.

Contenu connexe

Plus de hoggardbennie

-- C Program How might I modify this code to handle any number of comm.docx
-- C Program How might I modify this code to handle any number of comm.docx-- C Program How might I modify this code to handle any number of comm.docx
-- C Program How might I modify this code to handle any number of comm.docxhoggardbennie
 
- What is osmosis and the three types of osmosis- Explain- - Which typ.docx
- What is osmosis and the three types of osmosis- Explain- - Which typ.docx- What is osmosis and the three types of osmosis- Explain- - Which typ.docx
- What is osmosis and the three types of osmosis- Explain- - Which typ.docxhoggardbennie
 
- Toss a coin three times- Let X- Heads - Tails- Find the distributio.docx
- Toss a coin three times- Let X- Heads -  Tails- Find the distributio.docx- Toss a coin three times- Let X- Heads -  Tails- Find the distributio.docx
- Toss a coin three times- Let X- Heads - Tails- Find the distributio.docxhoggardbennie
 
(1) In the tubular flowers of foxgloves- wild-type coloration is red-.docx
(1) In the tubular flowers of foxgloves- wild-type coloration is red-.docx(1) In the tubular flowers of foxgloves- wild-type coloration is red-.docx
(1) In the tubular flowers of foxgloves- wild-type coloration is red-.docxhoggardbennie
 
- Let X be a random variable has a normal distribution with -30 and -1.docx
- Let X be a random variable has a normal distribution with -30 and -1.docx- Let X be a random variable has a normal distribution with -30 and -1.docx
- Let X be a random variable has a normal distribution with -30 and -1.docxhoggardbennie
 
- A patient with emphysema is admitted to your unit- The patient is s.docx
-  A patient with emphysema is admitted to your unit- The patient is s.docx-  A patient with emphysema is admitted to your unit- The patient is s.docx
- A patient with emphysema is admitted to your unit- The patient is s.docxhoggardbennie
 
(X-Y)-(1-1)limxyxy.docx
(X-Y)-(1-1)limxyxy.docx(X-Y)-(1-1)limxyxy.docx
(X-Y)-(1-1)limxyxy.docxhoggardbennie
 
(shady) conditions will most likely have a-fewer chloroplasts than sun.docx
(shady) conditions will most likely have a-fewer chloroplasts than sun.docx(shady) conditions will most likely have a-fewer chloroplasts than sun.docx
(shady) conditions will most likely have a-fewer chloroplasts than sun.docxhoggardbennie
 
(i) Werck the icon to vere the trpssictons) More info Requirements 1-.docx
(i) Werck the icon to vere the trpssictons) More info Requirements 1-.docx(i) Werck the icon to vere the trpssictons) More info Requirements 1-.docx
(i) Werck the icon to vere the trpssictons) More info Requirements 1-.docxhoggardbennie
 
(a) Are these data categorical or quantitative- categorical quantitati.docx
(a) Are these data categorical or quantitative- categorical quantitati.docx(a) Are these data categorical or quantitative- categorical quantitati.docx
(a) Are these data categorical or quantitative- categorical quantitati.docxhoggardbennie
 
(a) The vector xRN has L different entries- For example- L-4 for x--3-.docx
(a) The vector xRN has L different entries- For example- L-4 for x--3-.docx(a) The vector xRN has L different entries- For example- L-4 for x--3-.docx
(a) The vector xRN has L different entries- For example- L-4 for x--3-.docxhoggardbennie
 
#include -iostream- #include -vector- #include -Date-h- #include -Pers.docx
#include -iostream- #include -vector- #include -Date-h- #include -Pers.docx#include -iostream- #include -vector- #include -Date-h- #include -Pers.docx
#include -iostream- #include -vector- #include -Date-h- #include -Pers.docxhoggardbennie
 

Plus de hoggardbennie (13)

-- C Program How might I modify this code to handle any number of comm.docx
-- C Program How might I modify this code to handle any number of comm.docx-- C Program How might I modify this code to handle any number of comm.docx
-- C Program How might I modify this code to handle any number of comm.docx
 
- What is osmosis and the three types of osmosis- Explain- - Which typ.docx
- What is osmosis and the three types of osmosis- Explain- - Which typ.docx- What is osmosis and the three types of osmosis- Explain- - Which typ.docx
- What is osmosis and the three types of osmosis- Explain- - Which typ.docx
 
- Toss a coin three times- Let X- Heads - Tails- Find the distributio.docx
- Toss a coin three times- Let X- Heads -  Tails- Find the distributio.docx- Toss a coin three times- Let X- Heads -  Tails- Find the distributio.docx
- Toss a coin three times- Let X- Heads - Tails- Find the distributio.docx
 
(1) In the tubular flowers of foxgloves- wild-type coloration is red-.docx
(1) In the tubular flowers of foxgloves- wild-type coloration is red-.docx(1) In the tubular flowers of foxgloves- wild-type coloration is red-.docx
(1) In the tubular flowers of foxgloves- wild-type coloration is red-.docx
 
- Let X be a random variable has a normal distribution with -30 and -1.docx
- Let X be a random variable has a normal distribution with -30 and -1.docx- Let X be a random variable has a normal distribution with -30 and -1.docx
- Let X be a random variable has a normal distribution with -30 and -1.docx
 
- A patient with emphysema is admitted to your unit- The patient is s.docx
-  A patient with emphysema is admitted to your unit- The patient is s.docx-  A patient with emphysema is admitted to your unit- The patient is s.docx
- A patient with emphysema is admitted to your unit- The patient is s.docx
 
(X-Y)-(1-1)limxyxy.docx
(X-Y)-(1-1)limxyxy.docx(X-Y)-(1-1)limxyxy.docx
(X-Y)-(1-1)limxyxy.docx
 
(shady) conditions will most likely have a-fewer chloroplasts than sun.docx
(shady) conditions will most likely have a-fewer chloroplasts than sun.docx(shady) conditions will most likely have a-fewer chloroplasts than sun.docx
(shady) conditions will most likely have a-fewer chloroplasts than sun.docx
 
(i) Werck the icon to vere the trpssictons) More info Requirements 1-.docx
(i) Werck the icon to vere the trpssictons) More info Requirements 1-.docx(i) Werck the icon to vere the trpssictons) More info Requirements 1-.docx
(i) Werck the icon to vere the trpssictons) More info Requirements 1-.docx
 
(ABC)B.docx
(ABC)B.docx(ABC)B.docx
(ABC)B.docx
 
(a) Are these data categorical or quantitative- categorical quantitati.docx
(a) Are these data categorical or quantitative- categorical quantitati.docx(a) Are these data categorical or quantitative- categorical quantitati.docx
(a) Are these data categorical or quantitative- categorical quantitati.docx
 
(a) The vector xRN has L different entries- For example- L-4 for x--3-.docx
(a) The vector xRN has L different entries- For example- L-4 for x--3-.docx(a) The vector xRN has L different entries- For example- L-4 for x--3-.docx
(a) The vector xRN has L different entries- For example- L-4 for x--3-.docx
 
#include -iostream- #include -vector- #include -Date-h- #include -Pers.docx
#include -iostream- #include -vector- #include -Date-h- #include -Pers.docx#include -iostream- #include -vector- #include -Date-h- #include -Pers.docx
#include -iostream- #include -vector- #include -Date-h- #include -Pers.docx
 

Dernier

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 

Dernier (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 

Find themes by year with reset index and unique IDs

  • 1. #Q10:** -Create a function called theme_by_year that takes as input a year (as an integer) and shows the theme ids and theme names (listed in order by theme id) that were in sets that year. The column names must be id and name_themes (to differentiate between the name of a theme and the name of a set) in that order. The index should be reset and go from 0 to n-1. Each theme should only be listed once even if it appeared in more than one set from that year -- duplicate themes should be based on theme id and not name since there are some themes with the same name but with a different id. Hint: It will help if you were to think about merging appropriate DataFrames to help you get this answer.