Stratified sampling
- [ ] Added new method stratified_sample
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

> Is there a particular Github issue where this feature is discussed?
> 
> Typically new features should be discussed in the Github issue with the core team + the community first.

Hi,
No, there is no github issue open for stratified sampling (or at least none
that I have found).
Reading the pandas documentation on contributing to the code, I found that
I could submit an enhancement. I thought of adding this method that
performs a stratified sampling, since there is no method that does that in
pandas.

If I have to open this discussion, how can I do so? I think users can
benefit from this method.

Thanks in advance. In the `Issues` tab, you can click the green `New Issue` and it will direct you to create a `Feature Request` that will create an issue that everyone can discuss > In the `Issues` tab, you can click the green `New Issue` and it will direct you to create a `Feature Request` that will create an issue that everyone can discuss

Great, I will do that. Thanks! > In the `Issues` tab, you can click the green `New Issue` and it will direct you to create a `Feature Request` that will create an issue that everyone can discuss

Issue #33777 Thanks for your contribution, but we would rather move forward with an API that is similar to https://github.com/pandas-dev/pandas/issues/31775