File tree 3 files changed +6
-9
lines changed
3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -220,7 +220,7 @@ pandas 0.11.1
220
220
- Groupby transform with item-by-item not upcasting correctly (GH3740 _)
221
221
- Incorrectly read a HDFStore multi-index Frame witha column specification (GH3748 _)
222
222
- ``read_html `` now correctly skips tests (GH3741 _)
223
- - DataFrames/Panel raise Type error when trying to hash (GH3882 _)
223
+ - PandasObjects raise TypeError when trying to hash (GH3882 _)
224
224
- Fix incorrect arguments passed to concat that are not list-like (e.g. concat(df1,df2)) (GH3481 _)
225
225
- Correctly parse when passed the ``dtype=str `` (or other variable-len string dtypes) in ``read_csv `` (GH3795 _)
226
226
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ def save(self, path):
31
31
def load (cls , path ):
32
32
return com .load (path )
33
33
34
+ def __hash__ (self ):
35
+ raise TypeError ('{0!r} objects are mutable, thus they cannot be'
36
+ ' hashed' .format (self .__class__ .__name__ ))
37
+
38
+
34
39
#----------------------------------------------------------------------
35
40
# Axis name business
36
41
@@ -594,10 +599,6 @@ def axes(self):
594
599
def __repr__ (self ):
595
600
return 'NDFrame'
596
601
597
- def __hash__ (self ):
598
- raise TypeError ('{0!r} objects are mutable, thus they cannot be'
599
- ' hashed' .format (self .__class__ .__name__ ))
600
-
601
602
@property
602
603
def values (self ):
603
604
return self ._data .as_matrix ()
Original file line number Diff line number Diff line change @@ -527,10 +527,6 @@ def _constructor(self):
527
527
def _can_hold_na (self ):
528
528
return not is_integer_dtype (self .dtype )
529
529
530
- def __hash__ (self ):
531
- raise TypeError ('{0!r} objects are mutable, thus they cannot be'
532
- ' hashed' .format (self .__class__ .__name__ ))
533
-
534
530
_index = None
535
531
index = lib .SeriesIndex ()
536
532
You can’t perform that action at this time.
0 commit comments