pandas.DataFrame.plot(). , .
matplotlib fig = plt.figure(figsize=(10,4)), DataFrame. pandas plot , , matplotlib, , . .
. , .. pandas , . , , figsize.
, df[['A', 'B']].plot(figsize=(10,4)). , . 2 , , , . , python script plt.show() , .
, , pandas ,
import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame({"A":[2,3,1], "B":[1,2,2]})
df[['A', 'B']].plot(figsize=(10,4))
plt.show()
, ax pandas.DataFrame.plot(ax=ax), ax - . , plt.gca().
import pandas as pd
import matplotlib.pyplot as plt
df = pd.DataFrame({"A":[2,3,1], "B":[1,2,2]})
plt.figure(figsize=(10,4))
df[['A', 'B']].plot(ax = plt.gca())
plt.show()
- PaulH.