Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodaigh committed Jul 30, 2021
1 parent 0ca296c commit e07bddf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
6 changes: 4 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DataConvenience"
uuid = "3b531cbf-ee43-4e67-8118-dca2c9372f86"
authors = ["Dai ZJ <[email protected]>"]
version = "0.3.2"
version = "0.3.3"

[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Expand All @@ -21,10 +21,12 @@ Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
WeakRefStrings = "ea10d353-3f73-51f8-a26c-33c1cb351aa5"

[compat]
CSV = "0.7, 0.8"
CategoricalArrays = "0.7, 0.8, 0.9, 0.10"
CSV = "0.7, 0.8"
DataFrames = "1"
Missings = "1"
PooledArrays = "1"
ShortStrings = "0.3"
SortingLab = "0.2"
StatsBase = "0.32, 0.33"
TableOperations = "1"
Expand Down
12 changes: 0 additions & 12 deletions src/nest.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,3 @@ function unnest(df, val)
tmp = [crossjoin(df[i:i, Not(val)], sdf) for (i, sdf) in enumerate(df[!, val])]
reduce(vcat, tmp)
end

if false
df = DataFrame(
        a = rand(1:81000),
        b = rand(1:81000),
        c = rand(1:81000),
    )

nest(df, :a, :meh)
unnest(nest(df, :a, :meh), :meh)
end

11 changes: 11 additions & 0 deletions test/nest.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using DataFrames
using DataConvenience

df = DataFrame(
        a = rand(1:81000),
        b = rand(1:81000),
        c = rand(1:81000),
    )

nest(df, :a, :meh)
unnest(nest(df, :a, :meh), :meh)

2 comments on commit e07bddf

@xiaodaigh
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/41848

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.3 -m "<description of version>" e07bddfb708e452c13bca4ba3ee89690ca1448bb
git push origin v0.3.3

Please sign in to comment.