You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/v0.11.0.txt
+33-17Lines changed: 33 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
v0.11.0 (March ??, 2013)
4
4
------------------------
5
5
6
-
This is a minor release from 0.10.1 and includes many new features and
6
+
This is a major release from 0.10.1 and includes many new features and
7
7
enhancements along with a large number of bug fixes. There are also a number of
8
8
important API changes that long-time pandas users should pay close attention
9
9
to.
@@ -54,6 +54,18 @@ Numeric dtypes will propagate and can coexist in DataFrames. If a dtype is passe
54
54
Timestamp('20010104'), '20010105'],dtype='O')
55
55
s.convert_objects(convert_dates='coerce')
56
56
57
+
58
+
**Platform Gotchas**
59
+
60
+
In versions prior to 0.11.0, DataFrame construction with lists was platform dependent (meaning 32-bit vs 64-bit).
61
+
``DataFrame([1,2],columns=['a'])`` would have a dtype of ``int32``,
62
+
while ``DataFrame({'a' : [1,2] })`` would be ``int64``.
63
+
Now construction dtype defaults will be handled in a platform independent manor,
64
+
resulting in defaults for integers of ``int64`` and floats of ``float64`` dtypes.
65
+
66
+
Keep in mind that ``DataFrame(np.array([1,2]))`` **WILL** result in ``int32`` on 32-bit platforms!
67
+
68
+
57
69
**Upcasting Gotchas**
58
70
59
71
Performing indexing operations on integer type data can easily upcast the data.
@@ -82,21 +94,11 @@ While float dtypes are unchanged.
82
94
casted
83
95
casted.dtypes
84
96
85
-
New features
86
-
~~~~~~~~~~~~
87
-
88
-
**Enhancements**
89
-
90
-
- In ``HDFStore``, provide dotted attribute access to ``get`` from stores (e.g. store.df == store['df'])
91
-
92
-
**Bug Fixes**
93
-
94
-
See the `full release notes
95
-
<https://github.com/pydata/pandas/blob/master/RELEASE.rst>`__ or issue tracker
96
-
on GitHub for a complete list.
97
-
97
+
**Datetimes conversion**
98
98
99
-
Datetime64[ns] columns in a DataFrame (or a Series) allow the use of ``np.nan`` to indicate a nan value, in addition to the traditional ``NaT``, or not-a-time. This allows convenient nan setting in a generic way. Furthermore datetime64 columns are created by default, when passed datetimelike objects (*this change was introduced in 0.10.1*)
99
+
Datetime64[ns] columns in a DataFrame (or a Series) allow the use of ``np.nan`` to indicate a nan value,
100
+
in addition to the traditional ``NaT``, or not-a-time. This allows convenient nan setting in a generic way.
101
+
Furthermore ``datetime64[ns]`` columns are created by default, when passed datetimelike objects (*this change was introduced in 0.10.1*)
100
102
101
103
.. ipython:: python
102
104
@@ -111,8 +113,7 @@ Datetime64[ns] columns in a DataFrame (or a Series) allow the use of ``np.nan``
111
113
df.ix[2:4,['A','timestamp']] = np.nan
112
114
df
113
115
114
-
Astype conversion on datetime64[ns] to object, implicity converts ``NaT`` to ``np.nan``
115
-
116
+
Astype conversion on ``datetime64[ns]`` to ``object``, implicity converts ``NaT`` to ``np.nan``
116
117
117
118
.. ipython:: python
118
119
@@ -127,6 +128,13 @@ Astype conversion on datetime64[ns] to object, implicity converts ``NaT`` to ``n
127
128
s.dtype
128
129
129
130
131
+
New features
132
+
~~~~~~~~~~~~
133
+
134
+
**Enhancements**
135
+
136
+
- In ``HDFStore``, provide dotted attribute access to ``get`` from stores (e.g. store.df == store['df'])
137
+
130
138
``Squeeze`` to possibly remove length 1 dimensions from an object.
131
139
132
140
.. ipython:: python
@@ -137,3 +145,11 @@ Astype conversion on datetime64[ns] to object, implicity converts ``NaT`` to ``n
137
145
p
138
146
p.reindex(items=['ItemA']).squeeze()
139
147
p.reindex(items=['ItemA'],minor=['B']).squeeze()
148
+
149
+
**Bug Fixes**
150
+
151
+
See the `full release notes
152
+
<https://github.com/pydata/pandas/blob/master/RELEASE.rst>`__ or issue tracker
0 commit comments