diviser les données pandas en deux
df_new1, df_new2 = df[:10, :], df[10:, :] if len(df) > 10 else df, None
Cook's Tree Boa
df_new1, df_new2 = df[:10, :], df[10:, :] if len(df) > 10 else df, None
import numpy as np
number_of_parts = 10
parts = np.array_split(df, number_of_parts)