I'm not sure what kind of population density you need to make public transport workable, but it's a blessing when you have it available. There's some sample math at the end of this article(https://www.ptua.org.au/myths/density/ - technical appendix) which concludes that you don't really need that high a density(it focuses on Melbourne), as long as people actually prefer to use the public transport service over their own cars.