@@ -17,14 +17,14 @@ def _check_is_partition(parts, whole):
17
17
18
18
19
19
def _to_ijv (ss , row_levels = (0 ,), column_levels = (1 ,), sort_labels = False ):
20
- """ For arbitrary (MultiIndexed) SparseSeries return
20
+ """ For arbitrary (MultiIndexed) sparse Series return
21
21
(v, i, j, ilabels, jlabels) where (v, (i, j)) is suitable for
22
22
passing to scipy.sparse.coo constructor. """
23
23
# index and column levels must be a partition of the index
24
24
_check_is_partition ([row_levels , column_levels ], range (ss .index .nlevels ))
25
25
26
- # from the SparseSeries : get the labels and data for non-null entries
27
- values = ss ._data . internal_values () ._valid_sp_values
26
+ # from the sparse Series : get the labels and data for non-null entries
27
+ values = ss .array ._valid_sp_values
28
28
29
29
nonnull_labels = ss .dropna ()
30
30
@@ -85,7 +85,7 @@ def _get_index_subset_to_coord_dict(index, subset, sort_labels=False):
85
85
86
86
def _sparse_series_to_coo (ss , row_levels = (0 ,), column_levels = (1 ,), sort_labels = False ):
87
87
"""
88
- Convert a SparseSeries to a scipy.sparse.coo_matrix using index
88
+ Convert a sparse Series to a scipy.sparse.coo_matrix using index
89
89
levels row_levels, column_levels as the row and column
90
90
labels respectively. Returns the sparse_matrix, row and column labels.
91
91
"""
0 commit comments