APPLICATION OF SUPERVISED LEARNING
MACHINE LEARNINGHARD QUESTIONS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
We can create DataFrame from ____
|
Numpy arrays
|
|
List of Dictionaries
|
|
Dictionary of Lists
|
|
All of the above
|
Explanation:
Detailed explanation-1: -You can create a DataFrame from multiple Series objects by adding each series as a columns. By using concat() method you can merge multiple series together into DataFrame. This takes several params, for our scenario we use list that takes series to combine and axis=1 to specify merge series as columns instead of rows.
Detailed explanation-2: -Method 1: Create New DataFrame Using Multiple Columns from Old DataFrame new df = old df[[’col1’, ‘col2’]]. Method 2: Create New DataFrame Using One Column from Old DataFrame new df = old df[[’col1’]]. More items •09-May-2022
There is 1 question to complete.