How I picked out the year for peak employment in New York State by County

How I picked out the year for peak employment in New York State by County. 🗺

Just a few quick lines of Python code:

import pandas as pd

# by using RemoteZip (pip install remotezip) this speeds
# up downloads by only downloading the files in the zip file
# that we actually need from DOL
from remotezip import RemoteZip

dolzip='https://dol.ny.gov/statistics-lauszip'

# download & load only cities and counties
with RemoteZip(dolzip) as zip:
    df=pd.read_csv(zip.extract('laus_counties.txt'))
    df=df.append(pd.read_csv(zip.extract('laus_cities.txt')))

# get rid of double quotes in column names
df.columns = df.columns.str.replace('\"','')

# get rid of spaces in column names
df.columns=df.columns.str.replace(' ','')
# select year and county totals, create a pandas pivot table, then
# run idmax to the highest employment number for each county
df[((df['MONTH'] == 0) & (df['AREA'].str.contains('County')))].pivot(index='YEAR',columns='AREA',values='EMP').idxmax()
Map: Cowee State Forest
Map: New York State Manufacturing Employee Salary
SVGZ Graphic: 2022 Percentage of Workers that are Union Members
SVGZ Graphic: Average Wage in New York State
SVGZ Graphic: Change in the Number of Jobs, April 2022 vs April 2012
SVGZ Graphic: Change in Union Membership, 2020 to 2021
SVGZ Graphic: Computer System Anaylsts Median Annual Wage
SVGZ Graphic: Largest Major Employment Sector
SVGZ Graphic: LAUS - Peak Year of Employment by County
SVGZ Graphic: Managers Median Annual Wage
SVGZ Graphic: Manufacturing Median Wage
SVGZ Graphic: Median Average Wage of Foresters
SVGZ Graphic: Median Average Wage of Tax Preparers
SVGZ Graphic: New York State Unemployment Rate - 2011 through 2024
SVGZ Graphic: Number of Babies Born in the United States
SVGZ Graphic: NYS Labor Force, Changes 2011-2022
SVGZ Graphic: Office of Lawyers Median Wage
SVGZ Graphic: Percent Change in Jobs, 1990 vs 2019
SVGZ Graphic: Percent Change in Total Employed, April 2022 vs April 2012
SVGZ Graphic: Percent of Employees that are Cashiers
SVGZ Graphic: Percent of Population that Works in Construction
SVGZ Graphic: Percentage Change in Jobs
SVGZ Graphic: Persons who Walk to Work
SVGZ Graphic: State Minimum Wage, 1968-2022
SVGZ Graphic: unemployment-rate2025-09-01
SVGZ Graphic: Year of Peak Employment by County
Thematic Map: Median Yearly Wages
Thematic Map: Percent of Employment as Fast Food Workers
Photo: Got my new aerial photo hung up in the office
Photo: Darn it's raining out
Photo: A first draft of what my dream home would look like
Photo: Just another day in the office ...

Leave a Reply

Your email address will not be published. Required fields are marked *