Which of the following statements is false?
1) Dataframe is size-mutable.
2) Dataframe is values-mutable,
3) Dataframe is immutable
4) Dataframe is capable to hold multiple types of data
Answers
Answer:
1. False
2. True
3. False
4. I think True
Explanation:
1. Dataframe is value-mutable but not size-mutable
2. True
3. False
4. See in this, I think it is true as we can create a data frame using multiple ways such as dictionary values or array values.
" Option (1) Dataframe is size-mutable is false ".
Explanation:
Option 2) Dataframe is value-mutable.
All pandas data structures are value-mutable (the values they contain can be altered) but not always size-mutable. The length of a series should not be changed, but for example, columns can be inserted into a dataframe.
Option 3) Dataframe is immutable
Dataframes, as well as datasets and RDDs (resilient distributed datasets), are considered immutable storage. Immutability is distinct as unchangeable. When we applied to an object, its state can't be modified after it's created.
Option 4) Dataframe is capable to hold multiple types of data is true. Because Pandas dataframe is a two (2)-dimensional labeled data structure with columns of potentially different types. Pandas dataframes are created in multiple ways. So, Dataframe is efficient to hold multiple data.
So, Option (1) Dataframe is size-mutable is false statement.