import  pandas
import numpy
def  get_circle_area(l,h):
    r=numpy.sqrt(l**2+h**2)/2
    return r**2*numpy.pi


excel=pandas.read_excel('长方形.xlsx',index_col='id')
excel['ca']=excel.apply(lambda row:get_circle_area(row['length'],row['width']),axis=1)
print(excel)

 

相关文章:

  • 2022-12-23
  • 2022-01-22
  • 2022-02-27
  • 2022-01-19
  • 2021-12-31
  • 2021-10-16
  • 2022-02-25
  • 2022-12-23
猜你喜欢
  • 2021-09-18
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2022-01-30
  • 2021-11-28
  • 2022-12-23
相关资源
相似解决方案