A.pd.read_csv("f1.csv",encoding =’ISO-8859-1’)B.pd.read_csv("f1.csv",encoding =’utf-8’)C.pd.read_csv("f1.csv",character_set =’ISO-8859-1’)D.pd.read_csv("f1.csv",character_set =’utf-8’)
A.df.drop(columns=["address"])B.df =df.drop(columns=["address"])C.df.drop("address")D.df =df.drop("address")
A.pop_shenzhen =df[’是否深户’].mean()B.pop_shenzhen =df.groupby(’address’,as_index=False)[’是否深户’].mean()C.pop_shenzhen =df.groupby(’是否深户’)[’是否深户’].mean()D.pop_shenzhen =df.groupby(’是否深户’,as_index=False)[’是否深户’].mean()