1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-11 14:56:55 +08:00

add end_date parameter to collector.normalize_data

This commit is contained in:
zhupr
2021-06-21 17:20:37 +08:00
parent 985fd0816c
commit 99fb49650a
3 changed files with 16 additions and 11 deletions

View File

@@ -2,7 +2,6 @@
# Licensed under the MIT License.
import re
import os
import time
import bisect
import pickle
@@ -10,7 +9,7 @@ import random
import requests
import functools
from pathlib import Path
from typing import Iterable, Tuple
from typing import Iterable, Tuple, List
import numpy as np
import pandas as pd
@@ -47,7 +46,7 @@ _CALENDAR_MAP = {}
MINIMUM_SYMBOLS_NUM = 3900
def get_calendar_list(bench_code="CSI300") -> list:
def get_calendar_list(bench_code="CSI300") -> List[pd.Timestamp]:
"""get SH/SZ history calendar list
Parameters