Stratified Sampling of Pandas DataFrame With N Based on value in Column

前端 未结 0 502
花落未央
花落未央 2020-12-22 21:59

Let\'s say I have a dataframe with two columns X and Y and my goal is to sample the dataframe based on cols X and Y where Y is a value and X is a categorical variable:

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