Ex2 - Filtering and Sorting Data
示例2-筛选和排序数据
This time we are going to pull data directly from the internet. 这次我们将直接从互联网上提取数据。
Step 1. Import the necessary libraries
步骤1. 导入必要的库
import pandas as pd
import numpy as np
Step 2. Import the dataset from this address.
第二步从这个地址导入数据集。
Step 3. Assign it to a variable called euro12.
第三步,将它分配给一个名为 euro12的变量
euro12=pd.read_csv(r'C:\Users\HP\Desktop\Euro_2012_stats_TEAM.csv')
euro12.head()