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

前端 未结 0 1020
误落风尘
误落风尘 2020-12-22 21:40

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:

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