Answers for "plot row vs column in dataframe python"

0

plot row vs column in dataframe python

from matplotlib import pyplot as plt
import numpy as np
import pandas as pd

plt.rcParams["figure.figsize"] = [7.50, 3.50]
plt.rcParams["figure.autolayout"] = True

df = pd.DataFrame(np.random.randn(10, 5), columns=list('abcde'))
df.iloc[0:6].plot(y='e')

print(df.iloc[0:6])

plt.show()
Posted by: Guest on October-24-2021

Code answers related to "plot row vs column in dataframe python"

Python Answers by Framework

Browse Popular Code Answers by Language