How do you figure out the *ideal* sample size ... as a data scientist?

Too few samples is a problem. And ... too many samples is a problem. How do we figure out just how many we need? Link to Code : https://github.com/ritvikmath/YouTube... My Patreon : https://www.patreon.com/user?u=49277905