Skip to content

Commit e61e32a

Browse files
Update __init__.py
Added a quick explanation to better understand for the new users
1 parent 3550556 commit e61e32a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pandas/arrays/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@
44
See :ref:`extending.extension-types` for more.
55
"""
66

7+
# Explanations for the ExtensionArrays listed below:
8+
#
9+
# ArrowExtensionArray: Wraps an Apache Arrow array for high-performance data handling.
10+
# ArrowStringArray: A specific version for string data backed by Apache Arrow.
11+
# BooleanArray: Stores boolean data (True, False) but with the ability to hold missing values (NA).
12+
# Categorical: For data that belongs to a fixed, finite set of categories. Very memory efficient.
13+
# DatetimeArray: Handles timezone-aware or timezone-naive date and time data.
14+
# FloatingArray: For floating-point (decimal) numbers, with support for missing values.
15+
# IntegerArray: For integer (whole) numbers, with support for missing values.
16+
# IntervalArray: Stores data representing intervals or ranges (e.g., 1-5, 6-10).
17+
# NumpyExtensionArray: A wrapper around a standard NumPy array, for compatibility within the extension system.
18+
# PeriodArray: For data representing regular time periods (e.g., months, quarters, years).
19+
# SparseArray: Memory-efficient array for data that is mostly zero or NA.
20+
# StringArray: Dedicated array for handling string data, with support for missing values.
21+
# TimedeltaArray: For data representing durations or differences in time (e.g., 2 days, 5 hours).
22+
723
from pandas.core.arrays import (
824
ArrowExtensionArray,
925
ArrowStringArray,

0 commit comments

Comments
 (0)