@@ -39,6 +39,59 @@ Highlights include:
39
39
df.ix[0,'A'] = np.nan
40
40
df
41
41
42
+ Output Formatting Enhancements
43
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
44
+
45
+ - df.info() view now display dtype info per column (:issue:`5682`)
46
+
47
+ - df.info() now honors the option ``max_info_rows``, to disable null counts for large frames (:issue:`5974`)
48
+
49
+ .. ipython:: python
50
+
51
+ max_info_rows = pd.get_option('max_info_rows')
52
+
53
+ df = DataFrame(np.random.randn(10,2))
54
+ df.iloc[3:6,0] = np.nan
55
+
56
+ # set to not display the null counts
57
+ pd.set_option('max_info_rows',0)
58
+ df.info()
59
+
60
+ # this is the default (same as in 0.13.0)
61
+ pd.set_option('max_info_rows',max_info_rows)
62
+ df.info()
63
+
64
+ - Add ``show_dimensions`` display option for the new DataFrame repr to control whether the dimensions print.
65
+
66
+ .. ipython:: python
67
+
68
+ df = DataFrame([[1, 2], [3, 4]])
69
+ pd.set_option('show_dimensions', False)
70
+ df
71
+
72
+ pd.set_option('show_dimensions', True)
73
+
74
+ - The ``ArrayFormatter`` for ``datetime`` and ``timedelta64`` now intelligently
75
+ limit precision based on the values in the array (:issue:`3401`)
76
+
77
+ Previously output might look like:
78
+
79
+ .. code-block:: python
80
+
81
+ age today diff
82
+ 0 2001-01-01 00:00:00 2013-04-19 00:00:00 4491 days, 00:00:00
83
+ 1 2004-06-01 00:00:00 2013-04-19 00:00:00 3244 days, 00:00:00
84
+
85
+ Now the output looks like:
86
+
87
+ .. ipython:: python
88
+
89
+ df = DataFrame([ Timestamp('20010101'),
90
+ Timestamp('20040601') ], columns=['age'])
91
+ df['today'] = Timestamp('20130419')
92
+ df['diff'] = df['today']-df['age']
93
+ df
94
+
42
95
API changes
43
96
~~~~~~~~~~~
44
97
@@ -139,37 +192,6 @@ Enhancements
139
192
140
193
MultiIndex.from_product([shades, colors], names=['shade', 'color'])
141
194
142
- - The ``ArrayFormatter`` for ``datetime`` and ``timedelta64`` now intelligently
143
- limit precision based on the values in the array (:issue:`3401`)
144
-
145
- Previously output might look like:
146
-
147
- .. code-block:: python
148
-
149
- age today diff
150
- 0 2001-01-01 00:00:00 2013-04-19 00:00:00 4491 days, 00:00:00
151
- 1 2004-06-01 00:00:00 2013-04-19 00:00:00 3244 days, 00:00:00
152
-
153
- Now the output looks like:
154
-
155
- .. ipython:: python
156
-
157
- df = DataFrame([ Timestamp('20010101'),
158
- Timestamp('20040601') ], columns=['age'])
159
- df['today'] = Timestamp('20130419')
160
- df['diff'] = df['today']-df['age']
161
- df
162
-
163
- - Add ``show_dimensions`` display option for the new DataFrame repr to control whether the dimensions print.
164
-
165
- .. ipython:: python
166
-
167
- df = DataFrame([[1, 2], [3, 4]])
168
- pd.set_option('show_dimensions', False)
169
- df
170
-
171
- pd.set_option('show_dimensions', True)
172
-
173
195
- Panel :meth:`~pandas.Panel.apply` will work on non-ufuncs. See :ref:`the docs<basics.apply_panel>`.
174
196
175
197
.. ipython:: python
@@ -227,9 +249,6 @@ Enhancements
227
249
result
228
250
result.loc[:,:,'ItemA']
229
251
230
- - df.info() view now display dtype info per column (:issue:`5682`)
231
- - df.info() now honors option max_info_rows, disable null counts for large frames (:issue:`5974`)
232
-
233
252
Performance
234
253
~~~~~~~~~~~
235
254
0 commit comments