MCQ Single Best Answer Easy

Q

 a) Download the dataset from https://hrcdn.net/s3_pub/istreet-assets/H4_TQkbOj39HUNoBukluIQ/training.txt  and load it to the variable 'sentiment_analysis_data'.
 b) Give the column names as 'label' and 'message'.
 c) Try out the code snippets and answer the questions.
Which of the following commands is used to view the dataset SIZE, and what is the value returned?

ID: #5563 Unstructured Data Classification 151 views
Question Info
#5563Q ID
EasyDifficulty
Unstructured Data ClassificationTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A sentiment_analysis_data.size(), (6918, 2)
  • B sentiment_analysis_data.shape, (6918, 3)
  • C sentiment_analysis_data.shape, (6918, 2)
  • D sentiment_analysis_data.size, (6918, 3)
Correct Answer: Option C

Explanation

sentiment_analysis_data.shape, (6918, 2)

Share This Question

Challenge a friend or share with your study group.