Matplotlib plot is a no-show

后端 未结 3 1947
广开言路
广开言路 2020-12-13 08:45

When I run this code

import pandas as pd
import numpy as np
def add_prop(group):
    births = group.births.astype(float)
    group[\'prop\'] = births/births.         


        
3条回答
  •  南笙
    南笙 (楼主)
    2020-12-13 08:59

    Put

    import matplotlib.pyplot as plt
    

    at the top, and

    plt.show()
    

    at the end.

提交回复
热议问题