File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -81,11 +81,11 @@ def __init__(self, values) -> None:
8181 pa_data = values
8282 else :
8383 raise ValueError (f"Unsupported type '{ type (values )} ' for JSONArray" )
84-
84+
8585 # Ensures compatibility with pandas version 1.5.3
86- if hasattr (self , ' _data' ):
86+ if hasattr (self , " _data" ):
8787 self ._data = pa_data
88- elif hasattr (self , ' _pa_array' ):
88+ elif hasattr (self , " _pa_array" ):
8989 self ._pa_array = pa_data
9090 else :
9191 raise ValueError (f"Unsupported pandas version: { pd .__version__ } " )
@@ -160,9 +160,9 @@ def dtype(self) -> JSONDtype:
160160 def pa_data (self ):
161161 """An instance of stored pa data"""
162162 # Ensures compatibility with pandas version 1.5.3
163- if hasattr (self , ' _data' ):
163+ if hasattr (self , " _data" ):
164164 return self ._data
165- elif hasattr (self , ' _pa_array' ):
165+ elif hasattr (self , " _pa_array" ):
166166 return self ._pa_array
167167
168168 def _cmp_method (self , other , op ):
You can’t perform that action at this time.
0 commit comments