'print function behaving weirdly in Jupyter Notebook

I was trying to form a Collaborative Filtering Model for a Hotel Recommendation system and noticed my print function start acting weirdly. Jupyter is interpreting the print function as a NumPy array.

Can someone explain what's happening?

Here is the link for the screenshot

https://i.stack.imgur.com/J62Ha.png



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source