Specific numbers of communities in leidenalg library igraph
find_partition() has a second required parameter, the partition_type. You must make an appropriate choice here, and also set the parameters of the partition type suitably.
A possible reason that you got so many partitions is that you may have chosen CPMVertexPartition and left the resolution parameter at the default of 1. The larger this value the more communities will be returned. With CPMVertexPartition a good starting point for experimentation is the graph density.
Or you can use RBConfigurationVertexPartition in which case a good starting point is 1.0 (which corresponds to maximizing the classic modularity).
When I use partition = la.find_partition(G) and then len(partition) command on my graph, I get 402303 communities as the result.
I only want to have 15 communities, not 402303. 
Is there a way to find specific size communities in leidenalg library?