Python Forum
Buliding a dataframe with where conditions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Buliding a dataframe with where conditions
#3
(Oct-23-2020, 11:44 PM)scidam Wrote: If you need to choose rows by condition use loc instead:
df = df.loc[filter_1 & filter_2]

thank you that works.
Reply


Messages In This Thread
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

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020