The Python Oracle

Compare columns of Pandas dataframe for equality to produce True/False, even NaNs

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: The World Wide Mind

--

Chapters
00:00 Question
01:01 Accepted answer (Score 10)
01:25 Answer 2 (Score 0)
01:41 Answer 3 (Score 0)
02:04 Answer 4 (Score 0)
03:32 Thank you

--

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

Answer 1 links:
[image]: https://i.stack.imgur.com/FujYb.png

Answer 3 links:
[source]: https://pandas.pydata.org/pandas-docs/st...
[.eq()]: https://pandas.pydata.org/pandas-docs/st...
[.eq()]: https://pandas.pydata.org/pandas-docs/st...
[.fillna()]: https://pandas.pydata.org/pandas-docs/st...
[.loc()]: https://pandas.pydata.org/pandas-docs/st...
[.isna()]: https://pandas.pydata.org/pandas-docs/st...
[working with missing data]: https://pandas.pydata.org/pandas-docs/st...
[.equals()]: https://pandas.pydata.org/pandas-docs/st...

--

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

--

Tags
#python #pandas #dataframe

#avk47