Flashield's Blog

Just For My Daily Diary

Flashield's Blog

Just For My Daily Diary

Day: February 21, 2024

06.exercise-renaming-and-combining【练习:重命名及组合】

This notebook is an exercise in the Pandas course. You can reference the tutorial at this link. Introduction 介绍 Run the following cell to load your data and some utility functions. 运行以下单元格来加载数据和一些实用函数。 import pandas as pd reviews = pd.read_csv("../input/wine-reviews/winemag-data-130k-v2.csv", index_col=0) from learntools.core import binder; binder.bind(globals()) from learntools.pandas.renaming_and_combining import * print("Setup complete.") Setup complete. Exercises 练习 […]

06.course-renaming-and-combining【重命名及组合】

Introduction 介绍 Oftentimes data will come to us with column names, index names, or other naming conventions that we are not satisfied with. In that case, you’ll learn how to use pandas functions to change the names of the offending entries to something better. 通常,数据会带有我们不满意的列名、索引名或其他命名约定。 在这种情况下,您将学习如何使用 pandas 函数将有问题的条目的名称更改为更好的名称。 You’ll also explore how to combine data […]

05.exercise-data-types-and-missing-values【练习:数据类型及缺失值】

This notebook is an exercise in the Pandas course. You can reference the tutorial at this link. Introduction 介绍 Run the following cell to load your data and some utility functions. 运行以下单元格来加载数据和一些实用函数。 import pandas as pd reviews = pd.read_csv("../input/wine-reviews/winemag-data-130k-v2.csv", index_col=0) from learntools.core import binder; binder.bind(globals()) from learntools.pandas.data_types_and_missing_data import * print("Setup complete.") Setup complete. Exercises 练习 […]

05.course-data-types-and-missing-values【数据类型及缺失值】

Introduction 介绍 In this tutorial, you’ll learn how to investigate data types within a DataFrame or Series. You’ll also learn how to find and replace entries. 在本教程中,您将学习如何研究 DataFrame 或 Series 中的数据类型。 您还将学习如何查找和替换条目。 To start the exercise for this topic, please click here. 要开始本主题的练习,请单击此处。 Dtypes 数据类型 The data type for a column in a DataFrame or […]

04.exercise-grouping-and-sorting【练习:分组与排序】

This notebook is an exercise in the Pandas course. You can reference the tutorial at this link. Introduction 介绍 In these exercises we’ll apply groupwise analysis to our dataset. 在这些练习中,我们将对数据集应用分组分析。 Run the code cell below to load the data before running the exercises. 在运行练习之前,运行下面的代码单元以加载数据。 import pandas as pd reviews = pd.read_csv("../input/wine-reviews/winemag-data-130k-v2.csv", index_col=0) pd.set_option("display.max_rows", 5) from […]

Scroll to top