Skip to content

Instantly share code, notes, and snippets.

@tugloo1
Created January 19, 2018 00:34
Show Gist options
  • Save tugloo1/bf7cf911beb0f6961e6909dd47bbffad to your computer and use it in GitHub Desktop.
Save tugloo1/bf7cf911beb0f6961e6909dd47bbffad to your computer and use it in GitHub Desktop.
df['date_info'] = pd.to_datetime(df['year'] + ' ' + df['periodName'], format="%Y %B")
df['num_of_employees'] = pd.to_numeric(df['value'])
df = df.drop('footnotes', 1)
df = df.drop('period', 1)
df = df.drop('periodName', 1)
df = df.drop('value', 1)
df = df.drop('year', 1)
df.plot(x='date_info', y='num_of_employees')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment