image_output_1.png
import matplotlib.pyplot as plt

import numpy as np

import pandas as pd

earning = pd.read_csv('/kaggle/input/cusersmarildownloadsearningcsv/earning.csv', delimiter=';')
data = earning[['year', 'femalesmanagers', 'malemanagers', 'personmanagers', 'femalemachineryoperatorsanddrivers', 'malemachineryoperatorsanddrivers', 'personmachineryoperatorsanddrivers', 'femalesalesworkers', 'malesalesworkers', 'personsalesworkers']]
data.columns = ['year', 'manager_f', 'manager_m', 'manager_tot', 'operator_f', 'operator_m', 'operator_tot', 'sales_f', 'sales_m', 'sales_tot']
data

plt.plot(data['year'], data['manager_m'] - data['manager_f'], label='ManagerInnen')
plt.plot(data['year'], data['operator_m'] - data['operator_f'], label='OperatorInnen')
plt.plot(data['year'], data['sales_m'] - data['sales_f'], label='Sales')
plt.plot(data['year'], np.zeros(len(data['year'])), color='red', linestyle='--')
plt.title('Lohndifferenz Entwicklung')
plt.ylabel('Differenz in US $')
plt.xlabel('Jahre')
plt.legend()
plt.xlim(2004, 2017)
plt.show()