Type Casting Behavior for Strings Has Changed
Hey Team,
Just wanted to give you a heads up that type casting strings in NumPy does not throw an error any longer like it did back when this course was created. I tried it, and it worked. It just concatenated the strings together rather than attempt to add them like numbers.
Additionally, the np.type syntax is now deprecated according to the docs. You may want to consider updating this as it throws warnings now and recommends no longer doing this.
I realize this video was recorded back in 2020, so a lot has changed since then.
-Justin
Just wanted to give you a heads up that type casting strings in NumPy does not throw an error any longer like it did back when this course was created. I tried it, and it worked. It just concatenated the strings together rather than attempt to add them like numbers.
Additionally, the np.type syntax is now deprecated according to the docs. You may want to consider updating this as it throws warnings now and recommends no longer doing this.
I realize this video was recorded back in 2020, so a lot has changed since then.
-Justin
0 answers ( 0 marked as helpful)