📌  相关文章
📜  日志转换 pandas 数据框 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:51.253000             🧑  作者: Mango

代码示例1
# Calculate natural logarithm on  'Salary' column 
data['natural_log'] = np.log(data['Salary']) 
data   # Show the dataframe 
# Calculate logarithm to base 2  on 'Salary' column 
data['logarithm_base2'] = np.log2(data['Salary']) 
data   # Show the dataframe