MCQ Practice Single Best Answer Topic: Unstructured Data Classification

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?

Question ID
#5563
Subchapter
Unstructured Data Classification
Action
Choose one option below

Choose Your Answer

Click an option to check whether your answer is 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: C

Explanation

sentiment_analysis_data.shape, (6918, 2)

Share This Question

Share this MCQ with your friends or study group.