← 返回 bytedance 的题目列表Data Analysis and Supervised Learning in Jupyter Notebook
类型:online_judge
You are required to perform analysis on a given dataset within a Jupyter Notebook environment. The tasks include basic data manipulation operations such as slicing, filtering, joining, counting, and finally implementing a simple supervised learning classification task using scikit-learn.
Detailed Tasks:
Data Manipulation
Read the input dataset and perform the following operations:
Slicing: Extract specific rows or columns.
Filtering: Select data based on conditions.
Joining: Combine datasets together.
Counting: Count data based on specific conditions.
Supervised Learning
Split the dataset into training and testing data.
Use scikit-learn to build a classification model and predict on the test data.
Test Cases: Provide sample dataset such that the solution can correctly perform all operations and output the correct results.
Example
Input
Data as a string in CSV or JSON format