Answers for "fill variable based on values of other variables python"

0

fill variable based on values of other variables python

df['new_variable'] = (df['dec'].eq(1) & df['type'].isin([3,2,1])).view('i1')
Posted by: Guest on March-28-2022

Code answers related to "fill variable based on values of other variables python"

Python Answers by Framework

Browse Popular Code Answers by Language