Skip to content

Commit cad93bd

Browse files
authored
Merge pull request rapidsai#129 from vyasr/feat/rename_proxy_xdf_members
Rename proxy members
2 parents 53d7b5e + 5c35ff3 commit cad93bd

File tree

10 files changed

+109
-103
lines changed

10 files changed

+109
-103
lines changed

python/cudf/cudf/pandas/_wrappers/common.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
def array_method(self: _FastSlowProxy, *args, **kwargs):
22-
return self._xdf_slow.__array__(*args, **kwargs)
22+
return self._fsproxy_slow.__array__(*args, **kwargs)
2323

2424

2525
def array_function_method(self, func, types, args, kwargs):
@@ -43,15 +43,15 @@ def arrow_array_method(self: _FastSlowProxy, *args, **kwargs):
4343
import pyarrow as pa
4444

4545
try:
46-
return self._xdf_fast.to_arrow(*args, **kwargs)
46+
return self._fsproxy_fast.to_arrow(*args, **kwargs)
4747
except Exception:
48-
return pa.array(self._xdf_slow, *args, **kwargs)
48+
return pa.array(self._fsproxy_slow, *args, **kwargs)
4949

5050

5151
@property # type: ignore
5252
def cuda_array_interface(self: _FastSlowProxy):
53-
return self._xdf_fast.__cuda_array_interface__
53+
return self._fsproxy_fast.__cuda_array_interface__
5454

5555

5656
def custom_iter(self: _FastSlowProxy):
57-
return iter(self._xdf_slow)
57+
return iter(self._fsproxy_slow)

python/cudf/cudf/pandas/_wrappers/numpy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ def wrap_ndarray(cls, arr: cupy.ndarray | numpy.ndarray, constructor):
101101
else:
102102
# Note, this super call means that the constructed ndarray
103103
# class cannot be subclassed (because then super(cls,
104-
# cls)._xdf_wrap produces an infinite loop). Really this
104+
# cls)._fsproxy_wrap produces an infinite loop). Really this
105105
# should be super(ndarray, cls), but we don't have access to
106106
# the ndarray type until after we need to pass this function
107107
# in. So it works for now since without subclassing,
108108
# super(ndarray, cls) == super(ndarray, ndarray) == super(cls,
109109
# cls)
110-
return super(cls, cls)._xdf_wrap(arr, constructor)
110+
return super(cls, cls)._fsproxy_wrap(arr, constructor)
111111

112112

113113
ndarray = make_final_proxy_type(
@@ -128,7 +128,7 @@ def wrap_ndarray(cls, arr: cupy.ndarray | numpy.ndarray, constructor):
128128
# iter(numpy-array) produces an iterable of scalars)
129129
"__iter__": custom_iter,
130130
# Special wrapping to handle scalar values
131-
"_xdf_wrap": classmethod(wrap_ndarray),
131+
"_fsproxy_wrap": classmethod(wrap_ndarray),
132132
},
133133
)
134134

0 commit comments

Comments
 (0)