上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: https://www.cnblogs.com/zhuochong/p/14675984.html 阅读全文
posted @ 2022-01-04 18:11 ivyJ 阅读(22) 评论(0) 推荐(0)
摘要: def _load_config(file): with open(file, 'r') as f: configs = json.load(f) for config in configs: if 'z' in config: for file in config['zips']: file['a 阅读全文
posted @ 2022-01-04 17:46 ivyJ 阅读(98) 评论(0) 推荐(0)
摘要: https://vimsky.com/examples/usage/python-pandas.Series.map.html https://blog.csdn.net/weixin_38664232/article/details/89048065 https://www.cnblogs.com 阅读全文
posted @ 2021-12-29 17:37 ivyJ 阅读(470) 评论(0) 推荐(0)
摘要: 判断是否为null和空字符串ation = ation[(ation['risk_factor_1'].notnull()) & (ation['factor_1'] != "")]python判断字符串是否为空 len(x)==0 or x.isspace() ation['factor_1'] 阅读全文
posted @ 2021-12-23 15:36 ivyJ 阅读(762) 评论(0) 推荐(0)
摘要: df["currency"] = df["currency"].apply(lambda x:x[:-3] if x.endswith('USD') else x) 阅读全文
posted @ 2021-12-23 14:45 ivyJ 阅读(391) 评论(0) 推荐(0)
摘要: sensis['ccy'] = dfflat["currency"].apply( lambda x: True if x in ['USD', 'EUR', 'GBP', 'AUD', 'CAD', 'SEK', 'JPY'] else False)sensis['ten'] = dfflat[' 阅读全文
posted @ 2021-12-23 11:00 ivyJ 阅读(144) 评论(0) 推荐(0)
摘要: df = df[df['RiskWeightCode']!='CHF'] 阅读全文
posted @ 2021-12-23 10:57 ivyJ 阅读(1718) 评论(0) 推荐(0)
摘要: merge_cols = ['risk_factor' pd.merge(sensis, self.risk_weights.loc[self.risk_weights['risk_type'] == self.risk_type, merge_cols + ['risk_weight']], on 阅读全文
posted @ 2021-12-22 19:25 ivyJ 阅读(49) 评论(0) 推荐(0)
摘要: df = pd.DataFrame({'Team': ['A', 'A', 'B'], 'score': ['90', '80', '80'],'name':['1','2','3']})df = df.groupby("Team")['score'].apply(lambda x:",".join 阅读全文
posted @ 2021-12-20 15:53 ivyJ 阅读(1244) 评论(0) 推荐(0)
摘要: df.rename(columns={'A': 'a', 'B': 'b', 'C': 'c'}, inplace=True) 阅读全文
posted @ 2021-12-17 11:46 ivyJ 阅读(105) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页