汇总日期
对于数据类型为 datetime64 的日期列,也可以计算汇总统计量。有些统计量(例如均值)对日期并不太有意义,但其他统计量非常有用,例如最小值和最大值,它们可以让您看到数据覆盖的时间范围。
sales 已可用,且已将 pandas 以 pd 导入。
本练习是课程的一部分
使用 pandas 进行数据处理
练习说明
- 打印
date列的最大值。 - 打印
date列的最小值。
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Print the maximum of the date column
____
# Print the minimum of the date column
____