Project số 7 - Lớp: PY63A12L1


7.1. Exercise 1:

Create dummy dataset which contains 5 data fields: "first_name", "last_name", "age", "job", "country" and 10 rows. (dataset contains 1 "country" named "Vietnam", 1 age is "20")

 

7.2. Exercise 2:

Create 5 Series for each field, after that, create a Dataframe from 5 Series, dump that Dataframe to csv file.

 

7.3. Exercise 3:

Read the csv file from excercise 2, add the string "my_first_name" in to each value in the "first_name", add the string "my_last_name" in to each value in the "last_name".

 

7.4. Exercise 4:

Print all rows whose "country" is "Vietnam", whose "country" is not "Vietnam", whose "age" is greater than "20", whose "age" is lower than or equal "20".

Điểm số
10
Nhận xét của giảng viên

Qua bài làm của bạn mình thấy bạn đã nắm chắc kiến thức về pandas

Câu trả lời:

Học Viên: Lê Linh Chi

File projects: