摘要:
类似于 Linux 管道,上一个函数处理完成的结果交给下一个函数,而不是一个函数套一个函数。 def subtract_federal_tax(df): return df * 0.9 def subtract_state_tax(df, rate): return df * (1 - rate) 阅读全文
摘要:
大小写 大小写转换、首字母大写、英文书写格式、大小写反转的函数。pandas.Series.str.capitalize file:[例1] ser = pd.Series(['lower', 'CAPITALS', 'this is a sentence', 'SwApCaSe']) print( 阅读全文