Pandas Data Frame Plotting

后端 未结 2 511
广开言路
广开言路 2021-02-06 02:28

I have this Pandas DataFrame

\"enter

which gives me this:

2条回答
  •  臣服心动
    2021-02-06 02:50

    import matplotlib.pyplot as plt
    # 1, 4
    f = plt.figure(figsize=(10, 10)) # Change the size as necessary
    # 2
    dataframe.plot(ax=f.gca()) # figure.gca means "get current axis"
    plt.title('Title here!', color='black')
    # 3
    # Not sure :(
    

提交回复
热议问题