Skip to content

Commit fa23851

Browse files
author
Nick Eubank
committed
Docs now in whatnew 17.0
1 parent 7bafc4f commit fa23851

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

doc/source/whatsnew/v0.17.0.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,34 @@ Backwards incompatible API changes
3333

3434
.. _whatsnew_0170.api_breaking:
3535

36+
- default behavior for HDF write functions with "table" format is now to keep rows that are all missing except for index. (:issue:`9382`)
37+
38+
Previously,
39+
40+
.. code-block:: python
41+
42+
In [1]:
43+
df_with_missing = pd.DataFrame({'col1':[0, np.nan, 2], 'col2':[1, np.nan, 3]})
44+
df_with_missing.to_hdf('file.h5', 'df_with_missing', format = 't')
45+
46+
pd.read_hdf('file.h5', 'df_with_missing')
47+
48+
Out [1]:
49+
col1 col2
50+
0 0 1
51+
2 2 3
52+
53+
54+
New behavior:
55+
56+
.. ipython:: python
57+
58+
df_with_missing = pd.DataFrame({'col1':[0, np.nan, 2], 'col2':[1, np.nan, 3]})
59+
df_with_missing.to_hdf('file.h5', 'df_with_missing', format = 't')
60+
61+
pd.read_hdf('file.h5', 'df_with_missing')
62+
63+
3664
.. _whatsnew_0170.api_breaking.other:
3765

3866
Other API Changes

0 commit comments

Comments
 (0)