def split_data(data_df, split_ratio):
    """
    Split data into training and validation sets.
    """
    data_df_rows = int(data_df.shape[0] * split_ratio)

    training_data = data_df.loc[0:data_df_rows -1]
    validation_data = data_df.loc[data_df_rows:]

    return training_data, validation_data