|
1 | | -Announcing Python-Blosc2 4.5.1 |
| 1 | +Announcing Python-Blosc2 4.6.0 |
2 | 2 | ============================== |
3 | 3 |
|
4 | | -We are happy to announce this release, which builds the ``b2view`` terminal |
5 | | -data viewer into a richer **data-exploration** tool, upgrades the bundled |
6 | | -**C-Blosc2 to 3.1.4**, and promotes **WASM/Pyodide to a fully supported |
7 | | -platform**. |
| 4 | +We are happy to announce this release, which sharpens the **columnar / query |
| 5 | +side** of blosc2: zero-copy sorted views, queries over string (dictionary) |
| 6 | +columns, a more flexible and faster ``group_by``, and an ``b2view`` terminal |
| 7 | +browser that can now group, sort, and plot interactively. |
8 | 8 |
|
9 | 9 | The main highlights are: |
10 | 10 |
|
11 | | -- **Scatter plots in b2view**: from a column plot, press ``s`` to scatter the |
12 | | - current column against another column you pick from a list — column-vs-column |
13 | | - over the current (zoomed) row range — and ``h`` for a high-resolution |
14 | | - ``matplotlib`` scatter. The high-res view of a 1-D series is now a min/max |
15 | | - envelope too, with a new ``r`` key to toggle the raw values. |
16 | | - |
17 | | -- **Searchable pickers**: the ``c`` go-to-column key now opens a searchable, |
18 | | - selectable column list (type to filter, arrows, Enter) for CTables, and ``/`` |
19 | | - opens a searchable multi-select to choose which columns are shown. |
20 | | - |
21 | | -- **One-shot demo download**: ``b2view --download`` fetches a demo bundle |
22 | | - (``chicago-taxi-flat.b2z`` by default) into the current directory if it is not |
23 | | - already there, then opens it — a zero-setup way to try the viewer. |
24 | | - |
25 | | -- **Interaction fixes**: go-to-row/column pre-fills are now pre-selected (the |
26 | | - first keystroke replaces them), and ``escape`` keeps its documented layered |
27 | | - exit even while a panel is maximized (use ``r`` to restore). Plus a refreshed |
28 | | - header, a filename label in the title, and ``CTable.info`` now showing |
29 | | - per-column compressed sizes. |
30 | | - |
31 | | -A quick taste — grab the demo and start exploring:: |
32 | | - |
33 | | - $ pip install blosc2 --upgrade |
| 11 | +- **Zero-copy sorted views**: ``CTable.sort_by(..., view=True)`` returns a |
| 12 | + lightweight sorted view that shares the parent's column data and gathers rows |
| 13 | + on demand — no whole-table copy. Sorting on a fully indexed column streams |
| 14 | + straight from the index, so reading a sorted slice of a huge (on-disk) table |
| 15 | + is as easy as ``t.sort_by("col", view=True)[:10]``. |
| 16 | + |
| 17 | +- **Queries over string columns**: ``where`` expressions now work on |
| 18 | + dictionary-encoded (string) columns, including membership tests such as |
| 19 | + ``'"Acme" in company'``, filtering categorical text without decoding the whole |
| 20 | + column. |
| 21 | + |
| 22 | +- **Smarter, faster group_by**: ``group_by(...).agg()`` accepts flexible |
| 23 | + aggregation specs and explicit output names (pandas-style), a new tri-state |
| 24 | + ``sort=`` (``None``/``True``/``False``) sorts only when cheap, the last |
| 25 | + grouping is memoized, and ``min``/``max``/``argmin``/``argmax`` are |
| 26 | + accelerated from per-block index summaries instead of decompressing data. |
| 27 | + |
| 28 | +- **b2view grows up**: interactive **group-by** (``G``, including float keys), |
| 29 | + **sort-by-column** (``S``, zero-copy via the index), and much **better plots** |
| 30 | + — bars for categorical keys, lines/stems for numeric keys, hi-res variants for |
| 31 | + every plot type, and ``--max`` to maximize a panel. ``b2view`` is now an |
| 32 | + **opt-in extra** (``pip install "blosc2[tui]"``), so a plain |
| 33 | + ``pip install blosc2`` stays lean. |
| 34 | + |
| 35 | +- **Fixes & maintenance**: the bundled **C-Blosc2 is upgraded to 3.1.5**, the |
| 36 | + open-file cache now validates cached handles against the file's fingerprint (so |
| 37 | + a file changed underneath an open handle is never served stale), plus |
| 38 | + compatibility with **NumPy 2.5**. |
| 39 | + |
| 40 | +A quick taste — grab a table and explore it:: |
| 41 | + |
| 42 | + $ pip install "blosc2[tui]" --upgrade |
34 | 43 | $ b2view --download --panel data |
35 | 44 |
|
36 | | -Press ``p`` to plot a column, ``s`` to scatter it against another, and ``h`` |
37 | | -for a high-resolution view — all without decompressing anything you do not look |
38 | | -at. |
| 45 | +Press ``G`` to group, ``S`` to sort, and ``p`` to plot a column — all without |
| 46 | +decompressing anything you do not look at. |
39 | 47 |
|
40 | 48 | Install it with:: |
41 | 49 |
|
|
0 commit comments