How to repartition Spark dataframe depending on row count

visit shbcf.ru