Search Header Logo

Python Data Analysis

Authored by duong tung

Mathematics

11th Grade

Used 1+ times

Python Data Analysis
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào sau đây được dùng để chuyển đổi kiểu dữ liệu của một cột trong Pandas?

convert_type()

to_type()

astype()

change_type()

Answer explanation

astype() là hàm trong Pandas dùng để chuyển kiểu dữ liệu cho cột (df['col'].astype(type)).

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Biểu đồ nào thường dùng để thể hiện mối tương quan giữa hai biến?

Pie chart

Histogram

Line chart

Scatter plot

Answer explanation

Scatter plot (biểu đồ phân tán) dùng để biểu diễn mối tương quan giữa 2 biến số.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Thư viện nào sau đây hiển thị kết quả thống kê chi tiết hơn trong hồi quy tuyến tính?

sklearn

pandas

statsmodels

seaborn

Answer explanation

statsmodels cung cấp bảng kết quả chi tiết giống như phần mềm Stata, Eviews.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khi sử dụng sns.boxplot(), ta có thể quan sát được gì?

Mối tương quan giữa hai biến

Biến động theo thời gian

Phân phối và ngoại lệ của biến

Tần suất xuất hiện

Answer explanation

Boxplot thể hiện median, Q1, Q3, min, max và điểm ngoại lệ (outliers).

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm groupby() trong Pandas thường đi kèm với loại hàm nào?

Trực quan hóa

Tổng hợp dữ liệu

Xử lý văn bản

Vẽ biểu đồ

Answer explanation

groupby() được dùng để nhóm dữ liệu và thường đi kèm với các hàm tổng hợp như mean, sum, count,…

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong hàm sort_values(), tham số ascending=False có nghĩa là gì?

Không sắp xếp

Sắp xếp theo thứ tự ngẫu nhiên

Sắp xếp giảm dần

Sắp xếp tăng dần

Answer explanation

ascending=False nghĩa là sắp xếp theo thứ tự giảm dần (từ lớn đến bé).

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào dùng để tách dữ liệu thành tập huấn luyện và kiểm định trong sklearn?

test_split()

split_train_test()

train_test_split()

data_split()

Answer explanation

train_test_split() là hàm chuẩn của sklearn để chia dữ liệu.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?