Answers for "create plots with multiple dataframes python"

0

create plots with multiple dataframes python

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

scenarios = ['scen-1', 'scen-2']

fig, ax = plt.subplots()

for index, item in enumerate(scenarios):
    df = pd.DataFrame({'A' : np.random.randn(4)})
    print df
    df.plot(ax=ax)

plt.ylabel('y-label')
plt.xlabel('x-label')
plt.title('Title')
plt.show()
Posted by: Guest on August-23-2020

Code answers related to "create plots with multiple dataframes python"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language