Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.37 KB

File metadata and controls

47 lines (31 loc) · 1.37 KB

Solution

From MeifangLi-13043390

  • MCC Van Dyke et al., 2019, Fantastic yeasts and where to find them: the hidden diversity of dimorphic fungal pathogens or The Rise of Coccidioides: Forces Against the Dust Devil Unleashed
  • JT Harvey, Applied Ergonomics, 2002, An analysis of the forces required to drag sheep over various surfaces
  • DW Ziegler et al., 2005, Correlation of continuous cardiac output measured by a pulmonary artery catheter versus impedance cardiography in ventilated patients
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt

%matplotlib inline
df = pd.read_csv('https://raw.githubusercontent.com/Elf-Lee/CS_Assignment/master/istherecorrelation.csv', sep=';')
df.columns = ['Year', 'WO[x1000]', 'NL Beer consumption [x1000 hectoliter]']
fig, axs = plt.subplots(1, 2, constrained_layout=True, dpi=300)
axs[0].plot(df['Year'], df['WO[x1000]'], color= "blue")
axs[0].set_title('subplot 1')
axs[0].set_xlabel('Year')
axs[0].set_ylabel('WO[x1000]')
fig.suptitle('IS THERE CORRELATION', fontsize=16)

axs[1].plot(df['Year'], df['NL Beer consumption [x1000 hectoliter]'], color="red")
axs[1].set_xlabel('Year')
axs[1].set_title('sublpot 2')
axs[1].set_ylabel('NL Beer consumption [x1000 hectoliter]')

plt.show()

png