
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
In this lecture, you will get an overview of the course and learn how the course materials are organized. You will understand what NumPy is, why it is important for data analysis, and how it fits into the Python data ecosystem.
You will also set up your coding environment using Google Colab, Jupyter Notebook, or VS Code. By the end of this lecture, you will import NumPy, create your first one-dimensional array, and create your first two-dimensional array.
Exercise Objective:
Practice creating simple array-like data structures and inspecting their basic properties.
In the video lecture, you learned how NumPy arrays can be created and inspected using properties such as shape, size, and dtype. In this coding exercise, you will use standard Python lists to practice the same structural ideas.
Instructions:
1. Create a one-dimensional list named numbers with the values 10, 20, 30, 40, and 50.
2. Create a two-dimensional list named matrix with 3 rows and 4 columns.
3. Create a variable named numbers_size that stores the number of elements in numbers.
4. Create a variable named matrix_rows that stores the number of rows in matrix.
5. Create a variable named matrix_columns that stores the number of columns in matrix.
6. Create a variable named first_value that stores the first value in numbers.
7. Create a variable named last_value that stores the last value in numbers.
8. Print all variables clearly.
Expected Skills:
- Create one-dimensional data
- Create two-dimensional data
- Inspect the number of elements
- Inspect rows and columns
- Select first and last values
In this lecture, you will learn how Boolean filtering works with array-like data.
In NumPy, Boolean filtering allows you to select values or rows that match specific conditions. You will learn how to filter values, combine multiple conditions, and apply filtering logic to a small sales dataset.
You will also complete a mini data analysis project where you calculate revenue, cost, profit, average values, best-performing days, and high-profit records.
Khóa học này có sử dụng trí tuệ nhân tạo.
NumPy dành cho người mới bắt đầu: Phân tích dữ liệu thực tiễn với Python là một khóa học thân thiện với người mới học, được thiết kế để giúp học viên xây dựng nền tảng thực tiễn về phân tích dữ liệu số bằng Python.
Khóa học này sử dụng các công cụ hỗ trợ trí tuệ nhân tạo và công cụ kỹ thuật số để hỗ trợ quá trình sản xuất khóa học, bao gồm tổ chức kịch bản, chuẩn bị slide, tạo tài liệu trực quan và hỗ trợ thuyết minh. Tất cả tài liệu khóa học đã được giảng viên xem xét và phê duyệt trước khi nộp.
NumPy là một trong những thư viện quan trọng nhất trong hệ sinh thái dữ liệu của Python. Nó được sử dụng rộng rãi trong phân tích dữ liệu, tính toán khoa học, tự động hóa, học máy và xử lý số. Nếu bạn muốn vượt ra khỏi các danh sách Python cơ bản và bắt đầu làm việc với dữ liệu số có cấu trúc, NumPy là một trong những công cụ đầu tiên bạn nên học.
Trong khóa học này, bạn sẽ học cách tạo các cấu trúc dữ liệu giống mảng, hiểu về mảng một chiều và hai chiều, kiểm tra các thuộc tính của cấu trúc dữ liệu, chọn giá trị bằng cách sử dụng chỉ mục và cắt lát, thực hiện các phép toán, tính toán các số liệu thống kê cơ bản và lọc dữ liệu bằng các điều kiện.
Bạn cũng sẽ được thực hành với các ví dụ thực tiễn theo phong cách kinh doanh như doanh thu, chi phí, lợi nhuận, tỷ suất lợi nhuận và phân tích bán hàng. Những ví dụ này được thiết kế để giúp bạn hiểu cách dữ liệu số được xử lý trong quy trình làm việc thực tế.
Khóa học bao gồm các bài học ngắn, bài tập thực hành, tài liệu học tập có thể tải xuống và một dự án nhỏ cuối khóa tập trung vào phân tích dữ liệu bán hàng.
Sau khi hoàn thành khóa học này, bạn sẽ hiểu được các khái niệm cốt lõi của NumPy cần thiết để tiếp tục học Pandas, trực quan hóa dữ liệu, phân tích dữ liệu, tự động hóa và máy học ở cấp độ cơ bản.