开始使用免费开始使用

Slicing DataFrames

You are working with the books DataFrame again. This DataFrame had 12 columns, which makes it hard to print any single row. However, the most important information is contained in the first 6 columns of this DataFrame. Therefore, we slice it to select the parts we want and make processing and printing easier.

The books DataFrame is available in your environment as df_books.

本练习是课程的一部分

Introduction to Julia

查看课程

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Slice the first 6 columns
____ = ____[____, ____]
编辑并运行代码