Skip to content
Wolfgang Herfurtner

Wolfgang Herfurtner

Insurance Simplified Today

Primary Menu Wolfgang Herfurtner

Wolfgang Herfurtner

  • News Business
  • traffic finance
  • business markets
  • finance & accounting
  • Finance & Oportunity
  • business ideas
  • About Us
    • Advertise Here
    • Contact Us
    • Privacy Policy
    • Sitemap
  • Home
  • Ballpark figures: Analyzing MLB baseball attendance
  • traffic finance

Ballpark figures: Analyzing MLB baseball attendance

Thelma D. Griggs 15/05/2022 6:34 AM

[ad_1]

It is springtime in the U.S., which suggests one thing as American as apple pie is back: baseball. And since there’s all kinds of excellent facts all-around a person of the country’s wonderful pastimes, we made the decision for this week’s publish to glance at Important League Baseball (MLB) attendance stats from the final 20 yrs, which is released on lots of sites which includes the 1 we employed to get the data you are going to obtain in the charts down below: ESPN.com.

To acquire the attendance info from ESPN, we used Jupyter Workspaces (presently in beta in Domo) and the Python package Beautiful Soup to parse the HTML. And since Domo can now agenda code in Jupyter Workspaces to operate on a common schedule, you can be positive that this web page will proceed to update with the 2022 knowledge.

The initial point you will almost certainly see when looking at the facts is that 2020 is missing. Which is for the reason that, because of to the pandemic, baseball was performed without the need of admirers that calendar year. There was a little bit of a return to normalcy in 2021, but it was not until finally this period that all spectating restrictions had been lifted, so it will be exciting to enjoy how attendance rebounds (however, in complete transparency, we only have the details for whole decades right now, so we are not capturing any facts connected to seasonality, these kinds of as how weather or a team’s location in the playoff race influences ticket product sales).

A single fantastic way to review this details is with an outdated favourite of lots of data experts: a box and whisker plot. The chart displays the minimum and highest typical attendance for every group in the whiskers (the prime and bottom traces). I have sorted this to clearly show the crew with the maximum peak attendance calendar year on the left, and the lowest on the ideal:

The place the visualization receives additional appealing for me is with the box factors. Each box exhibits the house involving 25th and 75th percentiles, which is meant to replicate how a great deal a team’s attendance has swung about the several years. The bigger containers notify me people teams (these kinds of as Philadelphia and Detroit) have experienced some wonderful several years for attendance and some not so excellent several years. Smaller packing containers (these as Boston) say that a staff has been extremely dependable in its attendance figures. We have also filtered the chart for pre-pandemic years only considering the fact that 2021 (and to a lesser extent partial 2022 facts) skews the details.

An alternative approach to understanding how teams rank in attendance is to produce indexes of exactly where a team’s attendance stands relative to the total MLB average—which is what we’ve accomplished immediately beneath. Dark blue bins suggest that a crew is very well earlier mentioned the common, whilst darkish orange boxes indicate that a crew is properly down below the average. You can use the filters to glance at whatever league, division, staff(s), or calendar year(s) you are interested in:

Prolonged-time Domo consumers could be wanting at these indexes and thinking that I did some pre-calculation in a Magic ETL or a Dataset Check out. It’s true that undertaking calculations on this kind of full levels commonly require pre-calculation. But if I did that, it would be challenging to let for the calendar year filter. So, the solution is out: With Domo’s new Fastened beast modes (at the moment in beta), you can do Preset amount of depth capabilities suitable in a beast method. For the above “Index to League Avg”, this is the calculation:

You can see there are two factors occurring right here. First, when I have the SUM Fastened by League, then it is summing across all values with the same league as the row I am on. That allows me to get that league complete we want for the denominator of the index. Second, it is applying FILTER Make it possible for to inform Domo that filters on Calendar year can impression the Mounted functions.  There are choices for FILTER Allow, FILTER DENY, and FILTER NONE.

Here’s one last illustration of how valuable the Fastened with FILTER DENY can be. The bar charts under are defaulted to the New York Yankees (my boss’ preferred group). The initially chart is not utilizing Fixed, so when I filter for the Yankees, the Min, Max, and Median fields develop into meaningless due to the fact they get filtered to be the exact same as the selected workforce. The 2nd chart works by using Fixed and DENY on team title so that the Min, Max, and Median keep on being as references to the major normal, which is for the Yankees.

A person of the factors I love—and also at occasions uncover maddening—about exploring new facts is that there is often a lot more to explore. As I worked on this article, I realized that it would be quite attention-grabbing to provide in teams’ acquire/loss records as very well as details on stadium capacity. But then I considered: Let’s maybe help you save that for a potential put up.




[ad_2]

Supply connection

Post navigation

Previous: How to Move Your Site to a New Domain with Bill Hartzer
Next: When do we know traffic is back? When strong toll collections underscore its return

More Stories

Boosting Your Bottom Line: Creative Traffic Finance Strategies for Success
  • traffic finance

Boosting Your Bottom Line: Creative Traffic Finance Strategies for Success

Thelma D. Griggs 03/09/2026 3:20 AM
  • traffic finance

Thelma D. Griggs 01/09/2026 3:20 AM
Traffic Finance News: Revving Up Market Insights on the Road to Financial Growth
  • traffic finance

Traffic Finance News: Revving Up Market Insights on the Road to Financial Growth

Thelma D. Griggs 30/08/2026 3:19 AM

Categories

  • Business
  • business ideas
  • business markets
  • Entertainment
  • finance & accounting
  • Finance & Oportunity
  • News Business
  • Property
  • Real Estate
  • traffic finance

Archives

Recent Posts

  • How Loan Tenure Affects the Cost of Financing a Motorcycle
  • 5 Unconventional Online Business Models That Thrive in the Digital Gold Rush
  • Future-Proofing News: The Next Big Business Trends in Media
  • Unlocking Growth: The Art and Science of Modern Business Market Analysis
  • Revolutionizing Your Business: How Cutting-Edge Finance Accounting Services Drive Growth & Compliance

BL

You may have missed

How Loan Tenure Affects the Cost of Financing a Motorcycle
  • business ideas

How Loan Tenure Affects the Cost of Financing a Motorcycle

Thelma D. Griggs 15/10/2026 4:01 AM
5 Unconventional Online Business Models That Thrive in the Digital Gold Rush
  • business ideas

5 Unconventional Online Business Models That Thrive in the Digital Gold Rush

Thelma D. Griggs 03/09/2026 3:33 AM
Future-Proofing News: The Next Big Business Trends in Media
  • News Business

Future-Proofing News: The Next Big Business Trends in Media

Thelma D. Griggs 03/09/2026 3:30 AM
Unlocking Growth: The Art and Science of Modern Business Market Analysis
  • business markets

Unlocking Growth: The Art and Science of Modern Business Market Analysis

Thelma D. Griggs 03/09/2026 3:23 AM
Revolutionizing Your Business: How Cutting-Edge Finance Accounting Services Drive Growth & Compliance
  • finance & accounting

Revolutionizing Your Business: How Cutting-Edge Finance Accounting Services Drive Growth & Compliance

Thelma D. Griggs 03/09/2026 3:20 AM
wolfgangherfurtner.com | CoverNews by AF themes.

WhatsApp us