摘要: 删除DataFrame指定列有空值的行 1. mydf.dropna(subset=['col1', 'col2'], inplace = True) 2. mydf = pd.DataFrame({ 'name' : ['Tom','Amy','John','George'], 'sex' : [ 阅读全文
posted @ 2020-12-04 20:10 爱吃砂糖橘的白龙 阅读(187) 评论(0) 推荐(0) 编辑
摘要: q为素数,绘制1~(q-1)之间的离散对数表 代码 import pandas as pd def fast_power(base, power, MOD): result = 1 while power > 0: # If power is odd if power % 2 == 1: resul 阅读全文
posted @ 2020-12-04 13:00 爱吃砂糖橘的白龙 阅读(584) 评论(0) 推荐(0) 编辑