(condition: Series | Array<boolean>, options?: { inplace?: boolean })
| 3248 | **/ |
| 3249 | query(condition: Series | Array<boolean>, options?: { inplace?: boolean }): DataFrame |
| 3250 | query(condition: Series | Array<boolean>, options?: { inplace?: boolean }): DataFrame | void { |
| 3251 | const { inplace } = { inplace: false, ...options } |
| 3252 | |
| 3253 | if (!condition) { |
| 3254 | throw new Error("ParamError: condition must be specified"); |
| 3255 | } |
| 3256 | |
| 3257 | const result = _iloc({ |
| 3258 | ndFrame: this, |
| 3259 | rows: condition, |
| 3260 | }) as DataFrame |
| 3261 | |
| 3262 | if (inplace) { |
| 3263 | this.$setValues(result.values, false, false) |
| 3264 | this.$setIndex(result.index) |
| 3265 | } else { |
| 3266 | return result |
| 3267 | } |
| 3268 | |
| 3269 | } |
| 3270 | |
| 3271 | /** |
| 3272 | * Returns the data types for each column as a Series. |
nothing calls this directly
no test coverage detected