Pandas - binning column of numeric values while preserving NaN

后端 未结 0 1198
感动是毒
感动是毒 2021-01-17 16:51

I have a column in a dataframe which contains numeric values (such as age) and want to bin it into several categories (or ranges) like so:

df[\'Age_binned\'] =

相关标签:
回答
  • 消灭零回复
提交回复
热议问题