Commit 414154f
BUG: Replaced ValueError exception with TypeError exception in df.where() function (#56495)
* Replaced ValueError exception with TypeError exception in df.where() function
Replaced ValueError exception with TypeError as it is more appropriate for the error it serves.
* Updated test_where.py to account for updated exceptions.
* Update test_indexing.py to account for modified exceptions
* Update test_where.py for series
* Added bug fix to v2.2.0.rst
* Updated v2.2.0.rst
* Updated v2.2.0.rst
* Updated v2.2.0.rst
* Updated v2.2.0.rst
* Updated v2.2.0.rst
* resolved merge conflict
* resolved conflicts again
* Updated v2.2.0.rst
* Updated v2.2.0.rst
* removed change from 2.20
* Update v2.3.0.rst
* Update doc/source/whatsnew/v2.3.0.rst
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
---------
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>1 parent 327af12 commit 414154f
File tree
5 files changed
+8
-6
lines changed- doc/source/whatsnew
- pandas
- core
- tests
- frame/indexing
- series/indexing
5 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10675 | 10675 | | |
10676 | 10676 | | |
10677 | 10677 | | |
10678 | | - | |
| 10678 | + | |
10679 | 10679 | | |
10680 | 10680 | | |
10681 | 10681 | | |
10682 | | - | |
| 10682 | + | |
10683 | 10683 | | |
10684 | 10684 | | |
10685 | 10685 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
272 | 272 | | |
273 | 273 | | |
274 | 274 | | |
275 | | - | |
| 275 | + | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
0 commit comments