From 77585bc28472996000854b20a39751f8dcb37f32 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Fri, 23 May 2014 14:09:37 +0200 Subject: [PATCH 1/2] DOC: add some missing entries to api.rst --- doc/source/api.rst | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/doc/source/api.rst b/doc/source/api.rst index c6e2ae74a27cb..a2e36425ec0dc 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -127,6 +127,7 @@ Data manipulations :toctree: generated/ melt + pivot pivot_table crosstab cut @@ -134,6 +135,7 @@ Data manipulations merge concat get_dummies + factorize Top-level missing data ~~~~~~~~~~~~~~~~~~~~~~ @@ -320,6 +322,7 @@ Computations / Descriptive Stats :toctree: generated/ Series.abs + Series.all Series.any Series.autocorr Series.between @@ -362,6 +365,7 @@ Reindexing / Selection / Label manipulation Series.align Series.drop + Series.equals Series.first Series.head Series.idxmax @@ -500,8 +504,12 @@ Serialization / IO / Conversion Series.to_dict Series.to_frame Series.to_hdf + Series.to_sql + Series.to_gbq + Series.to_msgpack Series.to_json Series.to_sparse + Series.to_dense Series.to_string Series.to_clipboard @@ -624,6 +632,7 @@ Computations / Descriptive Stats :toctree: generated/ DataFrame.abs + DataFrame.all DataFrame.any DataFrame.clip DataFrame.clip_lower @@ -666,6 +675,7 @@ Reindexing / Selection / Label manipulation DataFrame.drop DataFrame.drop_duplicates DataFrame.duplicated + DataFrame.equals DataFrame.filter DataFrame.first DataFrame.head @@ -759,14 +769,18 @@ Serialization / IO / Conversion DataFrame.to_pickle DataFrame.to_csv DataFrame.to_hdf + DataFrame.to_sql DataFrame.to_dict DataFrame.to_excel DataFrame.to_json DataFrame.to_html DataFrame.to_latex DataFrame.to_stata + DataFrame.to_msgpack + DataFrame.to_gbq DataFrame.to_records DataFrame.to_sparse + DataFrame.to_dense DataFrame.to_string DataFrame.to_clipboard @@ -911,6 +925,7 @@ Reindexing / Selection / Label manipulation Panel.add_prefix Panel.add_suffix Panel.drop + Panel.equals Panel.filter Panel.first Panel.last @@ -1039,6 +1054,7 @@ Modifying and Computations Index.copy Index.delete Index.diff + Index.sym_diff Index.drop Index.equals Index.factorize @@ -1197,8 +1213,13 @@ Indexing, iteration GroupBy.groups GroupBy.indices GroupBy.get_group + +.. currentmodule:: pandas + Grouper +.. currentmodule:: pandas.core.groupby + Function application ~~~~~~~~~~~~~~~~~~~~ .. autosummary:: @@ -1219,6 +1240,20 @@ Computations / Descriptive Stats GroupBy.var GroupBy.ohlc +.. currentmodule:: pandas + +Working with options +-------------------- + +.. autosummary:: + :toctree: generated/ + + describe_option + reset_option + get_option + set_option + option_context + .. HACK - see github issue #4539. To ensure old links remain valid, include here the autosummaries with previous currentmodules as a comment and add From 39e4338a7e8c8bb0fc745f4af7ab2ce9dfec1b6f Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Fri, 23 May 2014 14:20:21 +0200 Subject: [PATCH 2/2] DOC: fix docs after disabling datetime-like Series-ops (GH7213) --- doc/source/api.rst | 16 ---------------- doc/source/timeseries.rst | 3 +-- doc/source/v0.12.0.txt | 2 +- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/doc/source/api.rst b/doc/source/api.rst index a2e36425ec0dc..2b12da9a7f92f 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -426,22 +426,6 @@ Time series-related Series.resample Series.tz_convert Series.tz_localize - Series.year - Series.month - Series.day - Series.hour - Series.minute - Series.second - Series.microsecond - Series.nanosecond - Series.date - Series.time - Series.dayofyear - Series.weekofyear - Series.week - Series.dayofweek - Series.weekday - Series.quarter String handling ~~~~~~~~~~~~~~~~~~~ diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 65796d95fed0a..d816bc171c300 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -579,8 +579,7 @@ calendars which account for local holidays and local weekend conventions. bday_egypt = CustomBusinessDay(holidays=holidays, weekmask=weekmask_egypt) dt = datetime(2013, 4, 30) dt + 2 * bday_egypt - dts = date_range(dt, periods=5, freq=bday_egypt).to_series() - dts + dts = date_range(dt, periods=5, freq=bday_egypt) Series(dts.weekday, dts).map(Series('Mon Tue Wed Thu Fri Sat Sun'.split())) As of v0.14 holiday calendars can be used to provide the list of holidays. See the diff --git a/doc/source/v0.12.0.txt b/doc/source/v0.12.0.txt index 91226fe180548..fd726af3912f0 100644 --- a/doc/source/v0.12.0.txt +++ b/doc/source/v0.12.0.txt @@ -380,7 +380,7 @@ Experimental Features bday_egypt = CustomBusinessDay(holidays=holidays, weekmask=weekmask_egypt) dt = datetime(2013, 4, 30) print(dt + 2 * bday_egypt) - dts = date_range(dt, periods=5, freq=bday_egypt).to_series() + dts = date_range(dt, periods=5, freq=bday_egypt) print(Series(dts.weekday, dts).map(Series('Mon Tue Wed Thu Fri Sat Sun'.split()))) Bug Fixes