汇总列
您需要为一份关于电动汽车市场动态的报告提供一些信息,包括它们的最高售价以及最大续航里程。
本练习是课程的一部分
Polars 入门
练习说明
- 创建一个只有 1 行的 DataFrame,包含
"price"列的最大值和"range"列的平均值。
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Print the max of the price and mean of the range
print(ev_df.select(____))您需要为一份关于电动汽车市场动态的报告提供一些信息,包括它们的最高售价以及最大续航里程。
本练习是课程的一部分
"price" 列的最大值和 "range" 列的平均值。通过完成这段示例代码来试试这个练习。
# Print the max of the price and mean of the range
print(ev_df.select(____))