I found this article on Medium very useful with further understanding this topic

4 Likes

Hi @f.echavarria521, thanks for sharing! Kindly change the tag from Q&A to Share to avoid any confusion amongst the community members!

Thanks!

2 Likes

Wouldn’t this second method result in setting a value on a copy? I think this chained assignment that is claimed to be faster is considered bad practice, and dataquest has even written an article on this with pandas. I’m wondering if this is equally true with numpy.