Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #plot #row #column #dataframe #python
ADD COMMENT
Topic
Name
7+5 =