1. 学ぶ
  2. /
  3. コース
  4. /
  5. Analyzing IoT Data in Python

Connected

演習

Date and Time

You will now convert the timestamp column of the previously gathered data into a datetime object.

Since the timestamp gathered is in Epoch time, pandas provides a simple and useful method to convert this for us.

The data is loaded as df.

指示1 / 2

undefined XP
  • 1

    Convert the column "ts" to datetime, without additional argument to the conversation call.

  • 2

    Notice that the previous solution did provide the timestamps in the 1970s. Convert the column correctly now.