The Python Oracle

pandas: multiple conditions while indexing data frame - unexpected behavior

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Light Drops

--

Chapters
00:00 Question
01:21 Accepted answer (Score 358)
02:31 Answer 2 (Score 72)
02:46 Answer 3 (Score 20)
03:20 Answer 4 (Score 1)
04:30 Thank you

--

Full question
https://stackoverflow.com/questions/2259...

Answer 1 links:
[query()]: https://pandas.pydata.org/pandas-docs/st...

Answer 3 links:
[de Morgan's laws]: https://en.wikipedia.org/wiki/De_Morgan%...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #pandas #dataframe #indexing #booleanlogic

#avk47