<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
I have a data which include dates in sorted order.
<ASSISTANT_TASK:>
Python Code:
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
features_dataframe = load_data()
n = features_dataframe.shape[0]
train_size = 0.8
test_size = 1 - train_size + 0.005
train_dataframe = features_dataframe.iloc[int(n * test_size):]
test_dataframe = features_dataframe.iloc[:int(n * test_size)]
<END_TASK>