Data Wrangling
I have used the railroad employee count dataset (Filename: railroad_2012_clean_county_tidy.csv) for data wrangling operations. Below is the code snippet to read and preview the data.
state county total_employees
1 AE APO 2
2 AK ANCHORAGE 7
3 AK FAIRBANKS NORTH STAR 2
4 AK JUNEAU 3
5 AK MATANUSKA-SUSITNA 2
6 AK SITKA 1
Below are the variables in the dataset:
I filtered rows correspoding to Massachusetts state.
I arranged the rows filtered in the previous step by total employee count ascending.
state county total_employees
1 MA BARNSTABLE 44
2 MA BERKSHIRE 50
3 MA HAMPSHIRE 68
4 MA FRANKLIN 113
5 MA HAMPDEN 202
6 MA BRISTOL 232
7 MA WORCESTER 310
8 MA ESSEX 314
9 MA NORFOLK 386
10 MA PLYMOUTH 429
11 MA SUFFOLK 558
12 MA MIDDLESEX 673
Text and figures are licensed under Creative Commons Attribution CC BY-NC 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".
For attribution, please cite this work as
Murulidhara (2021, Dec. 30). Data Analytics and Computational Social Science: Brinda Murulidhara HW2. Retrieved from https://github.com/DACSS/dacss_course_website/posts/httpsrpubscombrinda851751/
BibTeX citation
@misc{murulidhara2021brinda, author = {Murulidhara, Brinda}, title = {Data Analytics and Computational Social Science: Brinda Murulidhara HW2}, url = {https://github.com/DACSS/dacss_course_website/posts/httpsrpubscombrinda851751/}, year = {2021} }