What is the difference between datatype "object" and dtype('O') in python
Although I could not get why this was happening but when I tried data["Date"] = pd.to_datetime(data["Date"], errors='coerce') , the column changed into datetime type as it was required.
I wanted to convert my Date column (yyyy-mm-dd) into type datetime. I checked its dtype and it was object. On converting it as pd.to_datetime(data['Date']), the dtype changed to dtype('O'). I looked it up online and it had to something with numpy dtypes however I cannot find a concrete answer.

Can someone help me with this?