File tree 3 files changed +9
-1
lines changed 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ pandas 0.10.1
66
66
- handle correctly ``Term `` passed types (e.g. ``index<1000 ``, when index
67
67
is ``Int64 ``), (closes GH512 _)
68
68
- handle Timestamp correctly in data_columns (closes GH2637 _)
69
+ - contains correctly matches on non-natural names
69
70
- Fix DataFrame.info bug with UTF8-encoded columns. (GH2576 _)
70
71
- Fix DatetimeIndex handling of FixedOffset tz (GH2604 _)
71
72
- More robust detection of being in IPython session for wide DataFrame
@@ -98,6 +99,7 @@ pandas 0.10.1
98
99
.. _GH2625 : https://github.com/pydata/pandas/issues/2625
99
100
.. _GH2643 : https://github.com/pydata/pandas/issues/2643
100
101
.. _GH2637 : https://github.com/pydata/pandas/issues/2637
102
+ .. _GH2694 : https://github.com/pydata/pandas/issues/2694
101
103
102
104
pandas 0.10.0
103
105
=============
Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ def __contains__(self, key):
220
220
node = self .get_node (key )
221
221
if node is not None :
222
222
name = node ._v_pathname
223
- return re . search ( key , name ) is not None
223
+ if name == key or name [ 1 :] == key : return True
224
224
return False
225
225
226
226
def __len__ (self ):
Original file line number Diff line number Diff line change @@ -111,6 +111,12 @@ def test_contains(self):
111
111
self .assert_ ('/foo/b' not in self .store )
112
112
self .assert_ ('bar' not in self .store )
113
113
114
+ # GH 2694
115
+ warnings .filterwarnings ('ignore' , category = tables .NaturalNameWarning )
116
+ self .store ['node())' ] = tm .makeDataFrame ()
117
+ self .assert_ ('node())' in self .store )
118
+ warnings .filterwarnings ('always' , category = tables .NaturalNameWarning )
119
+
114
120
def test_versioning (self ):
115
121
self .store ['a' ] = tm .makeTimeSeries ()
116
122
self .store ['b' ] = tm .makeDataFrame ()
You can’t perform that action at this time.
0 commit comments