摘要: tx_day_order.groupby('CustomerID')['InvoiceDay' ].shift(2) 可以构建cohort analysis的数据 阅读全文
posted @ 2020-07-08 04:31 hannahzhao11 阅读(85) 评论(0) 推荐(0)
摘要: 以下记录知识点: 1. Python: np.squeeze(train_set_y[:, index]) 场景:在机器学习和深度学习中,通常算法的结果是可以表示向量的数组(即包含两对或以上的方括号形式[[]] 如果直接利用这个数组进行画图可能显示界面为空 我们可以利用squeeze()函数将表示向 阅读全文
posted @ 2020-07-07 22:49 hannahzhao11 阅读(92) 评论(0) 推荐(0)
摘要: 题目如下: Given nums = [2, 7, 11, 15] Target = 9 Return[i, j] Code要怎么写: def TwoSum(self, nums: List[int], target: int) -> List[int] : for i in range(): fo 阅读全文
posted @ 2020-06-28 00:56 hannahzhao11 阅读(88) 评论(0) 推荐(0)