According to Python’s pandas DataFrame class, what is variable size?
What does size variable mean in this case?
“Two-dimensional size-mutable, potentially heterogeneous tabular data
structure with labeled axes (rows and columns). Arithmetic operations
align on both row and column labels. Can be thought of as a dict-like
container for Series objects. The primary pandas data structure”
From: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html
I think this means that the size is variable – the size can change. Is this correct?
Solution
You are right. Variable-size means that elements can be added, removed/popped from a DataFrame. In contrast, Series is Size immutable, which means that once a Series object is created, operations such as append/delete that would change the size of the object are not allowed.