Skip to content

Commit

Permalink
feature: flatten; release
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidcarbon committed Nov 6, 2024
1 parent 4872a21 commit df2a7ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,4 +299,8 @@ duckdb.sql("FROM 'task.parquet'")
# │ 123.456 │ {'attrs': [adorable, agreeable], 'name': Alice} │ 3 │
# │ 123.456 │ {'attrs': [bland, broke], 'name': Brent} │ 5 │
# └────────────┴─────────────────────────────────────────────────┴───────┘

# return flatted dataframe
t1.flatten(prefix=True) # unnested columns are prefixed (user.name, user.attrs)
t1.flatten(prefix=False) # default: keep original column names (name, attrs)
```
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "affinity"
version = "0.5.0"
version = "0.6.0"
description = "Module for creating well-documented datasets, with types and annotations."
authors = [
{ name = "Alex Kislukhin" }
Expand Down

0 comments on commit df2a7ef

Please sign in to comment.