The Python Oracle

Python testing true/false condition on data frame column and returning output in new column

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: Fantascape Looping

--

Chapters
00:00 Question
01:11 Accepted answer (Score 7)
01:38 Answer 2 (Score 0)
02:26 Thank you

--

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

Accepted answer links:
[to_datetime]: http://pandas.pydata.org/pandas-docs/sta...
[dt.day]: http://pandas.pydata.org/pandas-docs/sta...
[np.where]: https://docs.scipy.org/doc/numpy/referen...

Answer 2 links:
[apply]: http://pandas.pydata.org/pandas-docs/sta...

--

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

--

Tags
#python #pandas #dataframe

#avk47