Size of the column, in elements. Corresponds to DataFrame.num_rows() if column is a single chunk; equal to size of this current chunk otherwise. Is a method rather than a property because it may cause a (potentially expensive) computation for some dataframe
(self)
| 239 | self._dtype = self._dtype_from_arrowdtype(dtype, bit_width) |
| 240 | |
| 241 | def size(self) -> int: |
| 242 | """ |
| 243 | Size of the column, in elements. |
| 244 | |
| 245 | Corresponds to DataFrame.num_rows() if column is a single chunk; |
| 246 | equal to size of this current chunk otherwise. |
| 247 | |
| 248 | Is a method rather than a property because it may cause a (potentially |
| 249 | expensive) computation for some dataframe implementations. |
| 250 | """ |
| 251 | return len(self._col) |
| 252 | |
| 253 | @property |
| 254 | def offset(self) -> int: |