In Python using the Pandas module From the dataset below, for the years 1920-1925, which football league ('AL' or 'NL') has the most Championship wins (ChampWin)? Report for each league ('AL' and 'NL') the total number of Championship wins in a singular dataframe.  Provide all inputs and outputs to prove functionality.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In Python using the Pandas module

From the dataset below, for the years 1920-1925, which football league ('AL' or 'NL') has the most Championship wins (ChampWin)?

Report for each league ('AL' and 'NL') the total number of Championship wins in a singular dataframe. 

Provide all inputs and outputs to prove functionality.

year league team W L leagueWin ChampWin
1920 AL BOS 72 81 N N
1920 NL BRO 93 61 Y N
1920 NL BSN 62 90 N N
1920 AL CHA 96 58 N N
1920 NL CHN 75 79 N N
1920 NL CIN 82 71 N N
1920 AL CLE 98 56 Y Y
1920 AL DET 61 93 N N
1920 NL NY1 86 68 N N
1920 AL NYA 95 59 N N
1920 AL PHA 48 106 N N
1920 NL PHI 62 91 N N
1920 NL PIT 79 75 N N
1920 AL SLA 76 77 N N
1920 NL SLN 75 79 N N
1920 AL WS1 68 84 N N
1921 AL BOS 75 79 N N
1921 NL BRO 77 75 N N
1921 NL BSN 79 74 N N
1921 AL CHA 62 92 N N
1921 NL CHN 64 89 N N
1921 NL CIN 70 83 N N
1921 AL CLE 94 60 N N
1921 AL DET 71 82 N N
1921 NL NY1 94 59 Y Y
1921 AL NYA 98 55 Y N
1921 AL PHA 53 100 N N
1921 NL PHI 51 103 N N
1921 NL PIT 90 63 N N
1921 AL SLA 81 73 N N
1921 NL SLN 87 66 N N
1921 AL WS1 80 73 N N
1922 AL BOS 61 93 N N
1922 NL BRO 76 78 N N
1922 NL BSN 53 100 N N
1922 AL CHA 77 77 N N
1922 NL CHN 80 74 N N
1922 NL CIN 86 68 N N
1922 AL CLE 78 76 N N
1922 AL DET 79 75 N N
1922 NL NY1 93 61 Y Y
1922 AL NYA 94 60 Y N
1922 AL PHA 65 89 N N
1922 NL PHI 57 96 N N
1922 NL PIT 85 69 N N
1922 AL SLA 93 61 N N
1922 NL SLN 85 69 N N
1922 AL WS1 69 85 N N
1923 AL BOS 61 91 N N
1923 NL BRO 76 78 N N
1923 NL BSN 54 100 N N
1923 AL CHA 69 85 N N
1923 NL CHN 83 71 N N
1923 NL CIN 91 63 N N
1923 AL CLE 82 71 N N
1923 AL DET 83 71 N N
1923 NL NY1 95 58 Y N
1923 AL NYA 98 54 Y Y
1923 AL PHA 69 83 N N
1923 NL PHI 50 104 N N
1923 NL PIT 87 67 N N
1923 AL SLA 74 78 N N
1923 NL SLN 79 74 N N
1923 AL WS1 75 78 N N
1924 AL BOS 67 87 N N
1924 NL BRO 92 62 N N
1924 NL BSN 53 100 N N
1924 AL CHA 66 87 N N
1924 NL CHN 81 72 N N
1924 NL CIN 83 70 N N
1924 AL CLE 67 86 N N
1924 AL DET 86 68 N N
1924 NL NY1 93 60 Y N
1924 AL NYA 89 63 N N
1924 AL PHA 71 81 N N
1924 NL PHI 55 96 N N
1924 NL PIT 90 63 N N
1924 AL SLA 74 78 N N
1924 NL SLN 65 89 N N
1924 AL WS1 92 62 Y Y
1925 AL BOS 47 105 N N
1925 NL BRO 68 85 N N
1925 NL BSN 70 83 N N
1925 AL CHA 79 75 N N
1925 NL CHN 68 86 N N
1925 NL CIN 80 73 N N
1925 AL CLE 70 84 N N
1925 AL DET 81 73 N N
1925 NL NY1 86 66 N N
1925 AL NYA 69 85 N N
1925 AL PHA 88 64 N N
1925 NL PHI 68 85 N N
1925 NL PIT 95 58 Y Y
1925 AL SLA 82 71 N N
1925 NL SLN 77 76 N N
1925 AL WS1 96 55 Y N
Expert Solution
steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Knowledge Booster
Mergesort
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education