APPLICATION OF SUPERVISED LEARNING
MACHINE LEARNINGHARD QUESTIONS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Lists, dict
|
|
Series
|
|
Numpy ndarrays and Another DataFrame
|
|
All of the above mentioned
|
Detailed explanation-1: -Amongst which of the following can be used to create various inputs using pandas DataFrame. Explanation: A pandas DataFrame can be created using various inputs like Lists, dict, Series, Numpy ndarrays, Another DataFrame.
Detailed explanation-2: -You have to use read csv() method of pandas and pass the location of the file that you want to read. Pandas will convert the data into the respective data frame. if we don’t pass “index=False” parameter to the to csv() method, it will create the first column containing index values.
Detailed explanation-3: -You can create a series by calling pandas. Series() . An list, numpy array, dict can be turned into a pandas series. You should use the simplest data structure that meets your needs.