Hello fellas,
I extracted the first and second half of a column of a csv data. They have different length. Now I want to put them in the same graph with a nice legend. Can somebody please help. Here is the code and the csv data.
import matplotlib.pyplot as plt import pandas as pd import numpy as np
df = pd.read_csv (r’/home/dieter/.config/spyder-py3/cardio.csv’) df = pd.read_csv(“cardio.csv”, usecols = [‘blutdruck’,‘target’]) print(df)
eins = df.loc[0:164, ‘blutdruck’:‘target’] null = df.loc[165:302, ‘blutdruck’:‘target’]
boxplot_eins = eins.boxplot(column=[‘blutdruck’])
boxplot_null = null.boxplot(column=[‘blutdruck’])
Here is the link to the csv data → Dropbox - cardio.csv - Simplify your life
and here the code in python format → Dropbox - ML_Projekt.py - Simplify your life
Thanks in advance!