When embarking on a data science project, why do you ultimately want to format your data so that it can be housed in something like a Pandas DataFrame or NumPy Array?
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: "Nearly all modeling algorithms take input data in a tabular format analogous to format of DataFrames/Arrays.". Hầu hết thuật toán học máy, từ hồi quy tuyến tính tới random forest trong scikit-learn, nhận đầu vào là một ma trận đặc trưng: mỗi hàng là một mẫu (sample), mỗi cột là một đặc trưng (feature). DataFrame của Pandas và mảng NumPy chính là dạng biểu diễn đó, nên đưa dữ liệu thô về dạng bảng là bước chuẩn bị tất yếu trước khi huấn luyện. Phát biểu "DataFrames/Arrays most closely resemble tables in relational databases." đúng về hình thức nhưng chỉ là sự giống nhau bề ngoài, không phải lý do cuối cùng khiến ta cần định dạng dữ liệu như vậy. Phát biểu "are the only structures in Python capable of holding significant amounts of data" sai, vì Python còn list, dict, các thư viện như Dask hay định dạng tệp như Parquet đều chứa được lượng dữ liệu lớn. Vì có một phát biểu sai nên "All of the answers" cũng không thể đúng.
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