how can i properly slice this dataframe?

Use numpy.array_split():

In [4]: import numpy as np
In [5]: np.array_split(df, 18)

This will return you a list with 18 elements, each in itself in a df.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top