Data Analysis

Where to Make the Most: A Comparison of Biotechnologist Salaries Across U.S. States / 미국 각 주별 물가 및 생명공학자 연봉 비교

재르미온느 2024. 3. 20. 21:17

Today, I will analyze the data from the U.S. Bureau of Labor Statistics to identify the most livable U.S. cities for biotechnologists..

오늘은 생명공학자로서 미국에서 가장 살기 좋은 도시를 찾기 위해, 미국 노동통계청에서 공개된 자료를 기준으로 데이터분석을 진행해보고자 한다.

 

ref : https://www.bls.gov/ooh/

 

Home : Occupational Outlook Handbook: : U.S. Bureau of Labor Statistics

 

www.bls.gov

 

After downloading the raw data from the US Bureau of Labor Statistics, I meticulously matched relevant information across different tables to create a cohesive dataset.

미국 노동통계청에서 다운받은 raw data들을 이용해서 여러 테이블을 매치시키며 유의미한 결과를 내보고자 노력했다.

bio=bio[bio['total_qtrly_wages']>0]
area_info=bio.join(area.set_index('area_fips')['state'],on='area_fips') #like vlookup in Excel!
sample=area_info[['state','total_qtrly_wages','taxable_qtrly_wages']]
sample= sample.dropna()
State=list(set(sample['state']))

Final=[]
for st in State:
    A=sample[sample['state']==st]
    B=int(sum(A['final_wages'])/len(A)) #get average wages
    Final.append((st,B))

#Make a DataFrame
FI=pd.DataFrame(Final,columns=['state','wages'])
wgs=FI.sort_values(by='wages',ascending=False) #sorting

[2] : I'm accustomed to using the VLOOKUP function in Excel, so I'm trying to adapt that approach to pandas.

Proficiency in both Excel and coding is essential for data scientists.

엑셀에서 자주 쓰던 VLOOKUP 기능을 판다스에서도 해보려고 노력했다. 데이터사이언티스트는 엑셀, 코딩 둘다 잘해야 한다.

 

 

To reflect the cost of living of each state, I used the Average Cost of Living Index table from the Missouri Economic Research and Information Center.

물가까지 반영하기 위해 미주리 경제 연구 & 정보 센터에서부터 주별 생활비 지수 테이블도 이용했다.

ref:https://meric.mo.gov/data/cost-living-data-series

 

Cost of Living Data Series | Missouri Economic Research and Information Center

Missouri had the sixth lowest cost of living in the United States for the 2023. In general, the most expensive areas to live were Hawaii, Alaska, the Northeast, and the West Coast. The least expensive areas were the Midwest and Southern states. MERIC deri

meric.mo.gov

 

 

 

Results

result graph

After calculating average wages for each state, I normalized them by dividing by the cost of living index for each state. This visualization presents the wages/index values for the top 10 states. According to the figure, Massachusetts is the best state for biotechnologists. However, the high degree of dispersion in the data makes it difficult to assess the reliability of the findings.

각 주의 평균 임금을 구하고 nomalize를 위해 생활비 지수를 나눴다. 표 상에서는 Massachusetts가 물가에 비해서도 연봉을 가장 높게 준다고 나와 있으나, 해당 주의 데이터는 분산이 너무 커서 신뢰하기 어렵다.

 

Despite the data variations, residing in Massachusetts, California, Pennsylvania, and other states listed in this table seems to be very attractive for biotechnologists.

그렇지만 매사추세츠, 캘리포니아, 펜실베니아 등의 주는 생명공학자들에게 매력적인 주인 것은 사실이다.

 

 

To the biotechnologists reading this, onward and upward!

이 글을 보고 있는 생명공학자들을 응원한다!