Commit a5ca04cb36
a5ca04cb367e6a8322d1b71ee7f3b609c627ee62
parent: fd3df2c5eb
Unsigned
cmc <hello@cleberg.net> · 2024-07-03 03:20 UTC
udpate salary visualization
Layout: unified · split
.gitignore
+1 −1
| @@ -1,3 +1,3 @@ |
| 1 | .DS_Store |
1 | .DS_Store |
| 2 | .vscode |
2 | .vscode |
| 3 | public\ No newline at end of file |
3 | public |
salary_visualization.py
+6 −2
| @@ -1,4 +1,4 @@ |
| 1 | # %pip install plotly pandas |
1 | %pip install plotly pandas |
| 2 | |
2 | |
| 3 | import pandas as pd |
3 | import pandas as pd |
| 4 | import plotly.graph_objs as go |
4 | import plotly.graph_objs as go |
| @@ -6,7 +6,11 @@ import locale |
| 6 | |
6 | |
| 7 | locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') |
7 | locale.setlocale(locale.LC_ALL, 'en_US.UTF-8') |
| 8 | |
8 | |
| 9 | df = pd.read_csv('~/Downloads/salary.csv') |
9 | df = pd.read_csv('~/git/cleberg.net/static/salary.csv') |
| |
10 | |
| |
11 | # Function to format salary as US currency |
| |
12 | def format_currency(value): |
| |
13 | return f"${value:,.2f}" |
| 10 | |
14 | |
| 11 | # Reverse the order of the DataFrame |
15 | # Reverse the order of the DataFrame |
| 12 | df = df.iloc[::-1].reset_index(drop=True) |
16 | df = df.iloc[::-1].reset_index(drop=True) |
static/salary.csv
added
+11
| @@ -0,0 +1,11 @@ |
| |
1 | Title,Company,Location,Start,End,Salary |
| |
2 | Senior Associate - Technology Assurance - Audit,KPMG,Omaha(NE),2023-10,2024-10,116700 |
| |
3 | Senior Associate - Technology Assurance - Audit,KPMG,Omaha(NE),2022-06,2023-10,110000 |
| |
4 | Senior Technology Risk Consultant,Ernst & Young,Des Moines(IA),2021-09,2022-06,89500 |
| |
5 | Senior IT Auditor,Ameritas,Lincoln(NE),2021-05,2021-09,72000 |
| |
6 | IT Auditor,Ameritas,Lincoln(NE),2020-04,2021-05,65000 |
| |
7 | IS Auditor II,Nelnet,Lincoln(NE),2019-12,2020-04,58000 |
| |
8 | IS Auditor I,Nelnet,Lincoln(NE),2019-06,2019-12,41600 |
| |
9 | Internal Audit Intern,Ameritas,Lincoln(NE),2018-02,2019-06,33280 |
| |
10 | Teaching Assistant,University of Nebraska,Lincoln(NE),2017-08,2018-05,14560 |
| |
11 | Community Management Intern,Walgreens,Lincoln(NE),2017-06,2018-02,29120 |