Oct-23-2020, 11:44 PM
If you need to choose rows by condition use
loc
instead:df = df.loc[filter_1 & filter_2]
Buliding a dataframe with where conditions
|
|
Messages In This Thread |
Buliding a dataframe with where conditions - by cspower - Oct-23-2020, 07:18 PM
RE: Buliding a dataframe with where conditions - by scidam - Oct-23-2020, 11:44 PM
RE: Buliding a dataframe with where conditions - by cspower - Oct-26-2020, 01:55 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
New Dataframe Column Based on Several Conditions | nb1214 | 1 | 1,824 |
Nov-16-2021, 10:52 PM Last Post: jefsummers |