Created
April 15, 2025 10:26
-
-
Save ssghost/4c61e3c3cdfbf3c2b0fc36b108ed7248 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from dateutil import parser | |
import plotly.express as px | |
df1 = pd.read_csv("./monthly_job_applications_2025-04-15T08_01_46.84848Z.csv") | |
df2 = pd.read_csv("./monthly_job_posts_2025-04-15T08_01_39.691275Z.csv") | |
df1.rename(columns={"Created At": "Month"}, inplace = True) | |
df2.rename(columns={"Published At": "Month"}, inplace = True) | |
df1.rename(columns={"Count": "Count_A"}, inplace = True) | |
df2.rename(columns={"Count": "Count_P"}, inplace = True) | |
df1["Month"].apply(lambda x: parser.parse(x)) | |
df2["Month"].apply(lambda x: parser.parse(x)) | |
df = pd.merge(df1, df2, on="Month") | |
df["Count_A"].apply(lambda x: int(x)) | |
df["Count_P"].apply(lambda x: int(x)) | |
df["Ratio"] = round(df['Count_P']/df['Count_A'], 2) | |
fig = px.bar(df, x='Month', y='Ratio') | |
fig.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment