摘要:
删除DataFrame指定列有空值的行 1. mydf.dropna(subset=['col1', 'col2'], inplace = True) 2. mydf = pd.DataFrame({ 'name' : ['Tom','Amy','John','George'], 'sex' : [ 阅读全文
摘要:
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 阅读全文