
MDS2_Pandas_xu_ly_chuoi_xu_ly_thoi_gian
Quiz by Phuong Do Thi
Feel free to use or edit a copy
includes Teacher and Student dashboards
Measure skillsfrom any curriculum
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
- edit the questions
- save a copy for later
- start a class game
- automatically assign follow-up activities based on students’ scores
- assign as homework
- share a link with colleagues
- print as a bubble sheet
- Q1Cho biết dtype của cột Skills trong dataframe student sau đây:stringcharactertextObject30s
- Q2
Cho dataframe student như sau:
Kết quả của câu lệnh student['Skills'].str.split(', ') là?
30s - Q3
Cho dataframe student như sau:
Kết quả của câu lệnh student['Skills'].str.contains('Python') là?
30s - Q4
Cho dataframe student như sau:
Kết quả của câu lệnh student['Skills'].str.upper(', ') là?
30s - Q5
Cho dataframe student như sau:
Kết quả của câu lệnh student['Skills'].str.lower(', ') là?
30s - Q6
Cho dataframe student như sau:
Kết quả của câu lệnh sau là gì?
student['Skills'].str.split(', ').explode().nunique()
8 (Số lượng các kỹ năng unique trong cột Skills)
'Emma' (Sinh viên có nhiều kỹ năng nhất)
'Python' (Kỹ năng phổ biến nhất)
30s - Q7
Cho dataframe student như sau:
Kết quả của câu lệnh sau là gì?
student[student['Skills'].str.contains('Python') & student['Skills'].str.contains('SQL')]['Name']
'Emma' (Sinh viên có nhiều kỹ năng nhất)
'Python' (Kỹ năng phổ biến nhất)
8 (Số lượng các kỹ năng unique trong cột Skills)
30s - Q8
Cho dataframe student như sau:
Kết quả của câu lệnh sau là gì?
student['Skills'].str.split(', ').explode().mode().iloc[0]
8 (Số lượng các kỹ năng unique trong cột Skills)
'Emma' (Sinh viên có nhiều kỹ năng nhất)
'Python' (Kỹ năng phổ biến nhất)
30s - Q9
Cho dataframe student như sau:
Kết quả của câu lệnh sau là gì?
student['Num_Skills'] = student['Skills'].str.split(', ').apply(len) <br>
student[student['Num_Skills'] == student['Num_Skills'].max()]['Name'].iloc[0]
'Python' (Kỹ năng phổ biến nhất)
8 (Số lượng các kỹ năng unique trong cột Skills)
'Emma' (Sinh viên có nhiều kỹ năng nhất)
30s - Q10
Cho dataframe employees như sau:
Câu lệnh nào sau đây trích xuất First Name của các nhân viên?
60s - Q11
Cho dataframe employees như sau:
Kết quả của câu lệnh employees['Name'].str.replace(' ', '_') hiển thị kết quả dòng đầu tiên là?
john_doe
John_Doe
John Doe
JohnDoe
45s - Q12
Cho dataframe employees như sau:
Câu lệnh nào sau đây sẽ tạo một cột mới 'Domain' trong DataFrame 'employees', chứa phần domain của địa chỉ email?
60s - Q13
Câu lệnh nào sau đây tạo được cột Title gồm tên chức danh của nhân viên, trích từ cột Description?
120s - Q14
Cho dataframe df nha sau:
Câu lệnh nào sau đây chuyển cột 'Join_Date' thành kiểu dữ liệu datetime?
df['Join_Date'].convert_to_datetime('%Y-%m-%d')
df['Join_Date'] = pd.to_datetime(df['Join_Date'], format = '%Y-%m-%d')
df['Join_Date'].to_datetime()
pd.to_datetime(df['Join_Date'], unit = 's')
30s - Q15
Câu lệnh df['Join_Date'].dt.month trả về kết quả gì?
Giờ của 'Join_Date'
Ngày của 'Join_Date'
Năm của 'Join_Date'
Tháng của 'Join_Date'
30s
