摘要:
order = ['接入国际局','中继群','接入运营商','主叫','被叫','呼入时间','呼出时间','通话时长','处置结果']total_df = total_df[order] 阅读全文
摘要:
DataFrame.sort_values(by, axis=0, ascending=True, inplace=False, kind='quicksort', na_position='last') axis:{0 or ‘index’, 1 or ‘columns’}, default 0, 阅读全文
摘要:
total_df['处置结果'] = total_df['处置结果'].apply(lambda x:'拦截' if '放行' not in x else x)‘处置结果’列中,如果不包含‘放行’字符,则全部替换成‘拦截’ 阅读全文
摘要:
with pd.ExcelWriter('./'+file_day+'_result.xlsx') as writer: DataFrame.to_excel( writer , sheet_name='Sheet1', na_rep='', float_format=None, columns=N 阅读全文
摘要:
dataframe.to_csv(xxxx,encoding="utf_8_sig") 即为encoding添加属性为utf_8_sig 阅读全文