File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -522,6 +522,13 @@ GroupByObjects
522522 core.groupby.DatasetGroupBy.apply
523523 core.groupby.DatasetGroupBy.reduce
524524
525+ Custom Indexes
526+ ==============
527+ .. autosummary ::
528+ :toctree: generated/
529+
530+ CFTimeIndex
531+
525532Plotting
526533========
527534
Original file line number Diff line number Diff line change 2222
2323from .conventions import decode_cf , SerializationWarning
2424
25+ from .coding .cftimeindex import CFTimeIndex
26+
2527try :
2628 from .version import version as __version__
2729except ImportError : # pragma: no cover
Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ def assert_all_valid_date_type(data):
135135
136136
137137class CFTimeIndex (pd .Index ):
138+ """Custom Index for working with CF calendars and dates
139+
140+ All elements of a CFTimeIndex must be cftime.datetime objects.
141+ """
138142 year = _field_accessor ('year' , 'The year of the datetime' )
139143 month = _field_accessor ('month' , 'The month of the datetime' )
140144 day = _field_accessor ('day' , 'The days of the datetime' )
You can’t perform that action at this time.
0 commit comments