I'm trying to divide up a feature class into a number of smaller sets. I have been using Select_analysis with objectid to divide up the featureclass so far but know that this is not the best method.
So for example, currently I have something like:
query = "objectid > 0 + AND objectid <= 1000" arcpy.Select_analysis(r"C:\Users\CHOK\Desktop\mulithreading\multiprocessing.gdb\Contours",r"C:\Users\CHOK\Desktop\mulithreading\multiprocessing.gdb\Contours_Mereged",query_statement)
What I want to know is if I can use the number of rows in the feature class to generate the query rather than relying on the objectid? So say I get the number of rows of the feature class using arcpy.GetCount_management(featureclass) and it outputs 1.9 million, is there a way I can divide that 1.9 million into 10 parts based on the count rather than objectid?