Skip to content

Commit

Permalink
0.6.31 release candidate 1
Browse files Browse the repository at this point in the history
  • Loading branch information
flexatone committed Sep 2, 2020
1 parent 21a8dbf commit 09d13b2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion doc/source/new.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
What is New in Static Frame
===============================


0.6.31
----------

Fixed issue when loading pickled containers where Boolean selection would not be properly identified.


0.6.30
----------

Expand All @@ -20,7 +27,7 @@ Removed ``format_index``, ``format_columns`` attributes from ``StoreConfig``.


0.6.29
----------
----------h

Fixed issue in ``Series.drop`` when the ``Series`` has an ``IndexHierarchy``.

Expand Down
2 changes: 1 addition & 1 deletion static_frame/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@
from static_frame.core.util import PathSpecifierOrFileLike as PathSpecifierOrFileLike
from static_frame.core.util import SeriesInitializer as SeriesInitializer

__version__ = '0.6.30' # use -dev for new version in development
__version__ = '0.6.31' # use -dev for new version in development

2 changes: 1 addition & 1 deletion static_frame/core/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def loc_to_iloc(cls, *,
# let Boolean key advance to next branch
key = reduce(operator_mod.or_, (labels_ref == k for k in key))

if is_array and key.dtype is DTYPE_BOOL:
if is_array and key.dtype == DTYPE_BOOL:
if offset_apply:
return positions[key] + offset
return positions[key]
Expand Down
2 changes: 1 addition & 1 deletion static_frame/core/index_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def loc_to_iloc(self, key: GetItemKeyTypeCompound) -> GetItemKeyType:
# NOTE: depth_key should not be Series or Index at this point; IndexHierarchy is responsible for unpacking / reindexing prior to this call
next_offset = offset + level.offset

if isinstance(depth_key, np.ndarray) and depth_key.dtype is DTYPE_BOOL:
if isinstance(depth_key, np.ndarray) and depth_key.dtype == DTYPE_BOOL:
# NOTE: use length of level, not length of index, as need to observe all leafs covered at this node.
depth_key = depth_key[next_offset: next_offset + len(level)]
if len(depth_key) > len(level.index):
Expand Down

0 comments on commit 09d13b2

Please sign in to comment.