Jul-12-2019, 12:08 AM
You can do this e.g., as follows:
df.iloc[:, 1][df.iloc[:, 1].str.contains('pass', case=False)] = 0
How to replace matching rows
|
|
Messages In This Thread |
How to replace matching rows - by SriMekala - Jul-11-2019, 02:35 PM
RE: How to replace matching rows - by scidam - Jul-12-2019, 12:08 AM
RE: How to replace matching rows - by SriMekala - Jul-13-2019, 09:43 AM
|