File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,14 @@ def __init__(self, values) -> None:
80
80
elif isinstance (values , pa .ChunkedArray ):
81
81
pa_data = values
82
82
else :
83
- raise NotImplementedError (f"Unsupported type '{ type (values )} ' for JSONArray" )
84
-
83
+ raise NotImplementedError (
84
+ f"Unsupported type '{ type (values )} ' for JSONArray"
85
+ )
86
+
85
87
# Ensures compatibility with pandas version 1.5.3
86
- if hasattr (self , ' _data' ):
88
+ if hasattr (self , " _data" ):
87
89
self ._data = pa_data
88
- elif hasattr (self , ' _pa_array' ):
90
+ elif hasattr (self , " _pa_array" ):
89
91
self ._pa_array = pa_data
90
92
else :
91
93
raise NotImplementedError (f"Unsupported pandas version: { pd .__version__ } " )
@@ -160,9 +162,9 @@ def dtype(self) -> JSONDtype:
160
162
def pa_data (self ):
161
163
"""An instance of stored pa data"""
162
164
# Ensures compatibility with pandas version 1.5.3
163
- if hasattr (self , ' _data' ):
165
+ if hasattr (self , " _data" ):
164
166
return self ._data
165
- elif hasattr (self , ' _pa_array' ):
167
+ elif hasattr (self , " _pa_array" ):
166
168
return self ._pa_array
167
169
else :
168
170
raise NotImplementedError (f"Unsupported pandas version: { pd .__version__ } " )
You can’t perform that action at this time.
0 commit comments