Open oinbar opened 3 years ago
running
df[new_col] = df.apply(lambda row: func(row) where func depends on logic between other columns returns scrambled results in new_col, unless you hit df.reset_index() first. Same code works as expected in pandas.
Could you show me the code example if possible so that I can reproduce and investigate ??
running
df[new_col] = df.apply(lambda row: func(row) where func depends on logic between other columns returns scrambled results in new_col, unless you hit df.reset_index() first. Same code works as expected in pandas.