We also need to set the index to the Date column and remove the Date column as a separate column. This will help us to run some interesting queries on the date data.
The code in the following screenshot shows how to set the index to the Date column:
Next, delete the Date column as a separate column, since it is already set up as an index, as shown in the following screenshot:
Now, the Date column can be seen as an index and not a separate column anymore, as shown in the following screenshot: