Beispiel #1
0
def get_df():
    df = stocklib.get_df(
        filepath='./SH999999.txt',
        close_index=4,
        append=True,
        reverse=False,
        header=['date', 'open', 'high', 'low', 'close', 'volume', 'money'])
    df['date'] = pd.to_datetime(df['date'], format='%Y%m%d')
    return df
Beispiel #2
0
def get_df():
    df = stocklib.get_df(
        filepath="./SH999999.txt",
        close_index=4,
        append=True,
        reverse=False,
        max_days=6000,
        header=["date", "open", "high", "low", "close", "volume", "money"],
    )
    df["date"] = pd.to_datetime(df["date"], format="%Y%m%d")
    return df
Beispiel #3
0
def get_df(code):
    filepath, csvpath = get_paths(code)
    if not filepath:
        print '%s filepath is none...' % code
        return
    df = stocklib.get_df(
        filepath=filepath,
        csvpath=csvpath,
        close_index=4,
        append=True,
        reverse=False,
        header=['date', 'open', 'high', 'low', 'close', 'volume', 'money'])
    df['date'] = pd.to_datetime(df['date'], format='%Y%m%d')
    return df