Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Split data-frame using Rows

# splitting dataframe by row index
df_1 = df.iloc[:1000,:]
df_2 = df.iloc[1000:,:]
print("Shape of new dataframes - {} , {}".format(df_1.shape, df_2.shape))
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Split #Rows
ADD COMMENT
Topic
Name
5+3 =