Skip to content

Commit 4a6d1fc

Browse files
committed
clean up
1 parent d1e2fd8 commit 4a6d1fc

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

docs/src/man/gallery.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ julia> byrow(ds, fill!, :, with = byrow(ds, mean, :));
135135
> since in the original post there are some specifications for checking equality of values we define a customised equality function
136136
137137
```julia
138-
julia> a1 = Dataset(z1=[1,missing,3,4,5],x1=string.(3:7),z2=[2,missing,4,5,6],x2=[3,5,4,7,5])
138+
julia> a1 = Dataset(z1 = [1,missing,3,4,5], x1 = string.(3:7), z2 = [2,missing,4,5,6], x2 = [3,5,4,7,5])
139139
5×4 Dataset
140140
Row │ z1 x1 z2 x2
141141
│ identity identity identity identity
@@ -149,10 +149,10 @@ julia> a1 = Dataset(z1=[1,missing,3,4,5],x1=string.(3:7),z2=[2,missing,4,5,6],x2
149149

150150
julia> eq(x, y) = isequal(x, y)
151151
julia> eq(x::String, y) = isequal(parse(Int,x), y)
152-
julia> eq(x, y::String) = isequal(x,parse(Int, y))
153-
julia> eq(x::String, y::String) = isequal(parse(Int, x),parse(Int, y))
152+
julia> eq(x, y::String) = isequal(x, parse(Int, y))
153+
julia> eq(x::String, y::String) = isequal(parse(Int, x), parse(Int, y))
154154
julia> eq(::Missing, ::Missing) = false
155-
julia> a1.result = reduce((x,y)-> x .|= byrow(a1, in, r"2", item = y, eq = eq), names(a1, r"1"), init = zeros(Bool, nrow(a1)))
155+
julia> a1.result = reduce((x,y) -> x .|= byrow(a1, in, r"2", item = y, eq = eq), names(a1, r"1"), init = zeros(Bool, nrow(a1)))
156156
5-element Vector{Bool}:
157157
1
158158
0

docs/src/man/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ An extended version of this tutorial is available [here](https://github.com/sl-s
44

55
## Getting and loading the data
66

7-
We use the `DLMReader` package to load a csv file into `InMemoryDatasets`, `DLMReader` is a high-performance and versatile package for reading delimited files into `InMemoryDatasets` (there are many alternative packages in Julia ecosystem, users can use any of them to read data into `InMemoryDatasets`):
7+
We recommend the `DLMReader` package to load a csv file into `InMemoryDatasets`, `DLMReader` is a high-performance and versatile package for reading delimited files into `InMemoryDatasets` (there are many alternative packages in Julia ecosystem, users can use any of them to read data into `InMemoryDatasets`):
88

99

1010
```julia

src/byrow/util.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,11 @@ end
122122

123123
#TODO this doesn't work - since in writeshortest() a must be a vector{UInt8} but we pass a view of a matrix in DLMReader
124124
function write_vals!(a, pos, x::Union{Float16, Float32, Float64})
125-
needed_space = Base.Ryu.neededdigits(typeof(x))
126-
available_space = length(a)-pos+1
127-
# needed_space > available_space && throw(ArgumentError("not enough space in buffer to write value into it"))
125+
# needed_space = Base.Ryu.neededdigits(typeof(x))
126+
# available_space = length(a)-pos+1
127+
# # needed_space > available_space && throw(ArgumentError("not enough space in buffer to write value into it"))
128128
_writeshortest(a, pos, x)
129+
129130
end
130131

131132
function write_vals!(a, pos, x::Bool)

src/precompile/warmup.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ function warmup()
3434
combine(gatherby(ds,1), Ref([1,2,3,7,8]) .=> [median, sort])
3535
combine(gatherby(ds,1), Ref([1,2,3,7,8]) .=> [sum, mean, length, maximum, minimum, var, std])
3636
combine(gatherby(ds,1), r"x1$" .=> [sum, mean, length, maximum, minimum, var, std])
37-
IMD._gather_groups_hugeds_multicols(ds, 1:6, Val(Int32), threads = true)
3837

3938
ds2 = ds[1:2, [1,3,7]]
4039
innerjoin(ds, ds2, on = [:x1, :x3, :x7])

0 commit comments

Comments
 (0)