File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 62
62
is_list_like ,
63
63
)
64
64
65
- from pandas .util import capitalize_first_letter
66
-
67
65
if not pa_version_under10p1 :
68
66
import pyarrow as pa
69
67
@@ -1087,7 +1085,7 @@ def na_value(self) -> NaTType:
1087
1085
1088
1086
def __eq__ (self , other : object ) -> bool :
1089
1087
if isinstance (other , str ):
1090
- return other in [ self . name , capitalize_first_letter ( self .name )]
1088
+ return other [: 1 ]. lower () + other [ 1 :] == self .name
1091
1089
1092
1090
return super ().__eq__ (other )
1093
1091
Original file line number Diff line number Diff line change @@ -27,7 +27,3 @@ def __getattr__(key: str):
27
27
28
28
def __dir__ ():
29
29
return list (globals ().keys ()) + ["hash_array" , "hash_pandas_object" ]
30
-
31
-
32
- def capitalize_first_letter (s : str ) -> str :
33
- return s [:1 ].upper () + s [1 :]
You can’t perform that action at this time.
0 commit comments