Hi @f.echavarria521, thanks for sharing! Kindly change the tag from Q&A to Share to avoid any confusion amongst the community members!
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.