Df3_g. Loc [' total ']=list (np) arange (25))
I tried assignment scalar, lists, arrays are no error this
Always append a non - a category item to a CategoricalIndex
CodePudding user response:
import pandas as pd
Df=pd DataFrame (columns=(' lib ', 'qty1', 'qty2))
Df=df append ([{' qty1 ', 10.0 'qty2:98}], ignore_index=True)
Print (df)
CodePudding user response: