Answers for "how to use a if statement for replace method in pandas"

1

pandas replace values based on condition

df.loc[df['First Season'] > 1990, 'First Season'] = 1
Posted by: Guest on May-23-2021

Code answers related to "how to use a if statement for replace method in pandas"

Python Answers by Framework

Browse Popular Code Answers by Language