If you were to munge the data into a pandas.DataFrame which of the following would describe a reasonable goal for the cleaning process?
4 phương ánCó giải thích
Các phương án trả lời
Chọn một phương ánLời giảiChọn phương án để mở
Đáp án đúng: "transactions on the rows and items like customer_name and item_id on the columns". Mục tiêu hợp lý của bước làm sạch là đưa dữ liệu về dạng tidy (gọn gàng): mỗi hàng là một quan sát ở mức chi tiết gốc, ở đây là một giao dịch, mỗi cột là một thuộc tính của giao dịch đó như tên khách hàng, mã mặt hàng. Giữ mức chi tiết này thì về sau gộp theo cách nào cũng được. "customer on the rows and items like total_sales, name, most_bought on the columns" là bảng đã gộp theo khách hàng; đó là việc của bước tạo đặc trưng phục vụ một câu hỏi cụ thể, làm ngay lúc làm sạch sẽ mất chi tiết giao dịch. "daily revenue on the rows items like customer_name and total on the columns" sai vì đã gộp theo ngày thì không còn tên khách hàng ở từng hàng. "None of the correct answer" sai vì đã có một mục tiêu hợp lý.
Cùng phần 1
Thinking with the lens of the scientific process, what would your next steps be if you wanted to decide where to open the next store for your sled business?Có lời giảiCâu hỏiWhen you compiled the JSON files into a single DataFrame or NumPy array, about how many days did the entire range of dates span?Có lời giảiCâu hỏiWhich library in Python is commonly used for reading and writing CSV files?Có lời giảiCâu hỏiCả 31 câu của chủ đề31 câu