lambda row scrambles results without index
oinbar opened this issue · 1 comments
oinbar commented
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.
itholic commented
Could you show me the code example if possible so that I can reproduce and investigate ??