@@ -67,15 +67,16 @@ Time series changes and improvements
67
67
PeriodIndex and DatetimeIndex
68
68
- New Timestamp data type subclasses `datetime.datetime`, providing the same
69
69
interface while enabling working with nanosecond-resolution data. Also
70
- provides **easy time zone conversions**
71
- - Enhanced support for **time zones**. Add `tz_convert` methods to TimeSeries
72
- and DataFrame. All timestamps are stored as UTC; Timestamps from
73
- DatetimeIndex objects with time zone set will be localized to localtime. Time
74
- zone conversions are therefore essentially free. User needs to know very
75
- little about pytz library now; only time zone names as as strings are
76
- required. Timestamps are equal if and only if their UTC timestamps
77
- match. Operations between time series with different time zones will result
78
- in a UTC-indexed time series
70
+ provides :ref:`easy time zone conversions <timeseries.timezone>`.
71
+ - Enhanced support for :ref:`time zones <timeseries.timezone>`. Add
72
+ `tz_convert` and ``tz_lcoalize`` methods to TimeSeries and DataFrame. All
73
+ timestamps are stored as UTC; Timestamps from DatetimeIndex objects with time
74
+ zone set will be localized to localtime. Time zone conversions are therefore
75
+ essentially free. User needs to know very little about pytz library now; only
76
+ time zone names as as strings are required. Time zone-aware timestamps are
77
+ equal if and only if their UTC timestamps match. Operations between time
78
+ zone-aware time series with different time zones will result in a UTC-indexed
79
+ time series.
79
80
- Time series **string indexing conveniences** / shortcuts: slice years, year
80
81
and month, and index values with strings
81
82
- Enhanced time series **plotting**; adaptation of scikits.timeseries
@@ -115,6 +116,7 @@ Other new features
115
116
function) for computing a categorical variable from a continuous variable by
116
117
binning values either into value-based (``cut``) or quantile-based (``qcut``)
117
118
bins
119
+ - Rename ``Factor`` to ``Categorical`` and add a number of usability features
118
120
- Add :ref:`limit <missing_data.fillna.limit>` argument to fillna/reindex
119
121
- More flexible multiple function application in GroupBy, and can pass list
120
122
(name, function) tuples to get result in particular order with given names
@@ -135,8 +137,8 @@ Other new features
135
137
memory usage than Python's dict
136
138
- Add first, last, min, max, and prod optimized GroupBy functions
137
139
- New :ref:`ordered_merge <merging.ordered_merge>` function
138
- - Add flexible :ref:`comparison <basics.binop>` instance methods eq, ne, lt, gt, etc. to DataFrame,
139
- Series
140
+ - Add flexible :ref:`comparison <basics.binop>` instance methods eq, ne, lt,
141
+ gt, etc. to DataFrame, Series
140
142
- Improve :ref:`scatter_matrix <visualization.scatter_matrix>` plotting
141
143
function and add histogram or kernel density estimates to diagonal
142
144
- Add :ref:`'kde' <visualization.kde>` plot option for density plots
@@ -148,6 +150,42 @@ Other new features
148
150
- Can select multiple columns from GroupBy
149
151
- Add :ref:`update <merging.combine_first.update>` methods to Series/DataFrame
150
152
for updating values in place
153
+ - Add ``any`` and ``all method to DataFrame
154
+
155
+ New plotting methods
156
+ ~~~~~~~~~~~~~~~~~~~~
157
+
158
+ .. ipython:: python
159
+ :suppress:
160
+
161
+ import pandas as pd
162
+ fx = pd.load('data/fx_prices')
163
+ import matplotlib.pyplot as plt
164
+
165
+ ``Series.plot`` now supports a ``secondary_y`` option:
166
+
167
+ .. ipython:: python
168
+
169
+ plt.figure()
170
+
171
+ fx['FR'].plot(style='g')
172
+
173
+ @savefig whatsnew_secondary_y.png width=4.5in
174
+ fx['IT'].plot(style='k--', secondary_y=True)
175
+
176
+ Vytautas Jancauskas, the 2012 GSOC participant, has added many new plot
177
+ types. For example, ``'kde'`` is a new option:
178
+
179
+ .. ipython:: python
180
+
181
+ s = Series(np.concatenate((np.random.randn(1000),
182
+ np.random.randn(1000) * 0.5 + 3)))
183
+ plt.figure()
184
+ s.hist(normed=True, alpha=0.2)
185
+ @savefig whatsnew_kde.png width=4.5in
186
+ s.plot(kind='kde')
187
+
188
+ See :ref:`the plotting page <visualization.other>` for much more.
151
189
152
190
Other API changes
153
191
~~~~~~~~~~~~~~~~~
0 commit comments