<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:
Hi I've read a lot of question here on stackoverflow about this problem, but I have a little different task. 
<ASSISTANT_TASK:>
Python Code:
import pandas as pd
df = pd.DataFrame({'DateTime': ['2000-01-04', '2000-01-05', '2000-01-06', '2000-01-07'],
                   'Close': [1460, 1470, 1480, 1450]})
def g(df):
    df['label'] = df.Close.diff().fillna(1).gt(0).astype(int)
    return df
df = g(df.copy())
<END_TASK>