Commit a197837
DOC: Update is_sparse docstring (#19983)
* BUG: Identify SparseDataFrame as sparse
The is_sparse function checks to see if
an array-like is spare by checking to see
if it is an instance of ABCSparseArray or
ABCSparseSeries. This commit adds
ABCSparseDataFrame to that list -- so it
can detect that a DataFrame (which is an
array-like object) is sparse.
Added a test for this.
* Revert "BUG: Identify SparseDataFrame as sparse"
This reverts commit 10dffd1.
The previous commit's change was not necessary.
Will add a docstring to clarify the behaviour of the method.
* DOC: Revise is_sparce docstring
Clean up the docstring for is_sparse so it confirms to the
documentation style guide.
Add additional examples and clarify that is_sparse
expect a 1-dimensional array-like.
* DOC: Adjust is_sparse docstring.
Responding to pull request comments.1 parent fe52d9f commit a197837
1 file changed
+37
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
154 | 158 | | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
158 | | - | |
| 162 | + | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
162 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
163 | 174 | | |
164 | 175 | | |
165 | 176 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
169 | 180 | | |
170 | | - | |
| 181 | + | |
171 | 182 | | |
172 | 183 | | |
173 | | - | |
174 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
175 | 192 | | |
176 | 193 | | |
177 | | - | |
| 194 | + | |
178 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
179 | 206 | | |
180 | 207 | | |
181 | 208 | | |
| |||
0 commit comments