lundi 14 juin 2021

Calculate Excel use if else by Jupyter Notebook

import pandas as pd 
df=pd.read_excel(r"D:/Pycharm/test1.xlsx") 
df
#if df = numeric(int): 
  #df/10
#else: (mean df= float)
  #return df  (Returns origin value to the table & show all other column )

I want write use if else between int & float in table excel and show all origin other column after if else completed in table.

enter image description here

Aucun commentaire:

Enregistrer un commentaire