尝试帮手机号码补0,但是后面用’0′ + filter.loc[mobile , ‘mobile’]的方式会报警告
如果只是单纯的赋值,例如 filter.loc[mobile , ‘mobile’] = ‘12345’就没问题
这操作实在是不太直觉,希望有人可以帮忙解惑一下
错误讯息:
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
filter.loc[mobile , ‘mobile’] = ‘0’ + filter.loc[mobile , ‘mobile’]