Pandas入门系列(九) -- Map和replace
import pandas as pdimport numpy as npfrom pandas import Series, DataFramedf1 = DataFrame({"城市":["北京","上海","广州"], "人口":[