Pandas: sample grouped object by custom probability function?

后端 未结 0 1484
深忆病人
深忆病人 2021-01-12 12:04

For reasons that are somewhat complex, I need to sample from a pandas data frame where I group by a specific variable, call_id, then apply some logic to a given variable num

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