Commit 4c4c9b1
authored
fix: Resolve AttributeError in TableWidget and improve initialization (#1937)
* remove expensive len() call
* add testcase
* fix a typo
* change how row_count is updated
* testcase stil fails, need to merged in 1888
* update the method of using PandasBatches.total_rows
* change tests in read_gbq_colab
* polish comment
* fix a test
* change code and update more testcase
* remove unneeded except
* add assert for total_rows
* get actual row_counts
* avoid two query calls
* remove double query when display widget
* get row count directly
* restore notebook
* restore notebook change
* remove duplicated code
* minor updates
* still have zero total rows issue
* now large dataset can get the correct row counts
* benchmark change
* revert a benchmark
* revert executor change
* raising a NotImplementedError when the row count is none
* change return type
* Revert accidental change of dataframe.ipynb
* remove unnecessary execution in benchmark
* remove row_count check
* remove extra execute_result
* remove unnecessary tests
* Fix: Address review comments on PandasBatches and docstring
- Reinstated 'Iterator[pd.DataFrame]' inheritance for 'PandasBatches' in 'bigframes/core/blocks.py'.
- Removed internal type hint 'bigframes.core.blocks.PandasBatches:' from 'to_pandas_batches' docstring in 'bigframes/dataframe.py' to avoid exposing internal types in public documentation.
* Revert: Revert import change in read_gbq_colab benchmark
This reverts the import path for the benchmark utils to 'benchmark.utils' to address concerns about google3 imports.
* Revert: Revert unnecessary changes in read_gbq_colab benchmarks
* Remove notebooks/Untitled-2.ipynb
* Remove notebooks/multimodal/audio_transcribe_partial_ordering.ipynb
* remove unnecessary change
* revert typo
* add todo
* change docstring
* revert changes to tests/benchmark/read_gbq_colab
* merge change
* update how we handle invalid row count
* eliminate duplated flags1 parent dc46b3c commit 4c4c9b1
File tree
4 files changed
+210
-49
lines changed- bigframes/display
- notebooks/dataframes
- tests/system/small
4 files changed
+210
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | | - | |
51 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
52 | 65 | | |
53 | 66 | | |
54 | 67 | | |
| |||
61 | 74 | | |
62 | 75 | | |
63 | 76 | | |
64 | | - | |
65 | 77 | | |
66 | 78 | | |
67 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
68 | 82 | | |
69 | 83 | | |
70 | 84 | | |
| |||
73 | 87 | | |
74 | 88 | | |
75 | 89 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 90 | | |
80 | 91 | | |
81 | 92 | | |
| |||
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
87 | | - | |
88 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
89 | 105 | | |
90 | 106 | | |
91 | 107 | | |
92 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
93 | 113 | | |
94 | 114 | | |
95 | 115 | | |
| |||
100 | 120 | | |
101 | 121 | | |
102 | 122 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | 123 | | |
109 | 124 | | |
110 | 125 | | |
| |||
171 | 186 | | |
172 | 187 | | |
173 | 188 | | |
174 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
175 | 193 | | |
176 | 194 | | |
177 | 195 | | |
| |||
181 | 199 | | |
182 | 200 | | |
183 | 201 | | |
184 | | - | |
| 202 | + | |
185 | 203 | | |
186 | 204 | | |
| 205 | + | |
187 | 206 | | |
188 | 207 | | |
189 | 208 | | |
190 | 209 | | |
191 | | - | |
| 210 | + | |
192 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
193 | 218 | | |
194 | 219 | | |
195 | 220 | | |
| |||
211 | 236 | | |
212 | 237 | | |
213 | 238 | | |
214 | | - | |
| 239 | + | |
215 | 240 | | |
| 241 | + | |
| 242 | + | |
216 | 243 | | |
217 | 244 | | |
218 | 245 | | |
219 | | - | |
| 246 | + | |
220 | 247 | | |
| 248 | + | |
| 249 | + | |
221 | 250 | | |
222 | 251 | | |
223 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
140 | 146 | | |
141 | 147 | | |
142 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
130 | 142 | | |
131 | 143 | | |
132 | 144 | | |
133 | | - | |
| 145 | + | |
134 | 146 | | |
135 | | - | |
| 147 | + | |
136 | 148 | | |
137 | 149 | | |
138 | 150 | | |
| |||
171 | 183 | | |
172 | 184 | | |
173 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
174 | 198 | | |
175 | 199 | | |
176 | 200 | | |
| |||
181 | 205 | | |
182 | 206 | | |
183 | 207 | | |
184 | | - | |
| 208 | + | |
185 | 209 | | |
186 | | - | |
| 210 | + | |
187 | 211 | | |
188 | 212 | | |
189 | 213 | | |
190 | 214 | | |
191 | 215 | | |
192 | | - | |
193 | 216 | | |
194 | | - | |
| 217 | + | |
195 | 218 | | |
196 | 219 | | |
197 | 220 | | |
| |||
257 | 280 | | |
258 | 281 | | |
259 | 282 | | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
260 | 297 | | |
261 | 298 | | |
262 | 299 | | |
| |||
267 | 304 | | |
268 | 305 | | |
269 | 306 | | |
270 | | - | |
| 307 | + | |
271 | 308 | | |
272 | | - | |
| 309 | + | |
273 | 310 | | |
274 | 311 | | |
275 | 312 | | |
276 | 313 | | |
277 | 314 | | |
278 | | - | |
279 | 315 | | |
280 | | - | |
| 316 | + | |
281 | 317 | | |
282 | 318 | | |
283 | 319 | | |
| |||
287 | 323 | | |
288 | 324 | | |
289 | 325 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | 326 | | |
299 | 327 | | |
300 | 328 | | |
301 | 329 | | |
302 | | - | |
| 330 | + | |
303 | 331 | | |
304 | 332 | | |
305 | 333 | | |
| |||
313 | 341 | | |
314 | 342 | | |
315 | 343 | | |
316 | | - | |
| 344 | + | |
317 | 345 | | |
318 | 346 | | |
319 | 347 | | |
| |||
0 commit comments