get_actions.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:JDcontest 作者: zsyandjyhouse 项目源码 文件源码
def get_actions(start_time, end_time):
    """
    :param start_date:
    :param end_date:
    :return: actions: pd.Dataframe
    """
    FilePath = "../JData/"
    ActionAllFile = "JData_Action_All.csv"
    #ActionAllFile = "JData_Action_before_327.csv"
    action_all = pd.read_csv(FilePath + ActionAllFile,nrows=100000)
    action_all.time = pd.to_datetime(action_all['time'],format='%Y-%m-%d %H:%M:%S')
    actions = action_all[(action_all.time >= start_time) & (action_all.time <= end_time)]
    return actions
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号