Skip to content

Commit 952b0e2

Browse files
authored
fix typos in docs and comments (#3143)
1 parent 0fb667f commit 952b0e2

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

src/abstractdataframe/io.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Render a data frame to an I/O stream in MIME type `mime`.
9999
- `df::AbstractDataFrame`: The data frame to print.
100100
101101
Additionally selected MIME types support passing the following keyword arguments:
102-
- MIME type `"text/plain"` accepts all listed keyword arguments and therir behavior
102+
- MIME type `"text/plain"` accepts all listed keyword arguments and their behavior
103103
is identical as for `show(::IO, ::AbstractDataFrame)`
104104
- MIME type `"text/html"` accepts `summary` keyword argument which
105105
allows to choose whether to print a brief string summary of the data frame.

src/abstractdataframe/selection.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,8 +803,8 @@ function select_transform!((nc,)::Ref{Any}, df::AbstractDataFrame, newdf::DataFr
803803
if newname isa DataType
804804
newname === AsTable || throw(ArgumentError("Only DataType supported as target is AsTable"))
805805
end
806-
# It is allowed to request a tranformation operation into a newname column
807-
# only once. This is ensured by the logic related to transformed_cols dictionaly
806+
# It is allowed to request a transformation operation into a newname column
807+
# only once. This is ensured by the logic related to transformed_cols set
808808
# in _manipulate, therefore in select_transform! such a duplicate should not happen
809809
res = _transformation_helper(df, col_idx, Ref{Any}(fun))
810810

@@ -1731,7 +1731,7 @@ function _manipulate(df::AbstractDataFrame, normalized_cs::Vector{Any}, copycols
17311731
newname = _names(df)[i]
17321732
# as nc is a multiple column selection without transformations
17331733
# we allow duplicate column names with selections applied earlier
1734-
# and ignore them for convinience, to allow for e.g. select(df, :x1, :)
1734+
# and ignore them for convenience, to allow for e.g. select(df, :x1, :)
17351735
if !hasproperty(newdf, newname)
17361736
# allow shortening to 0 rows
17371737
if allow_resizing_newdf[] && nrow(newdf) == 1

src/groupeddataframe/splitapplycombine.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ function _combine_process_proprow((cs_i,)::Ref{Any},
314314
end
315315
end
316316

317-
# move one column without transorming it
317+
# move one column without transforming it
318318
function _combine_process_noop(cs_i::Pair{<:Union{Int, AbstractVector{Int}}, Pair{typeof(identity), Symbol}},
319319
optional_i::Bool,
320320
parentdf::AbstractDataFrame,

src/groupeddataframe/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ function row_group_slots(cols::Tuple{Vararg{AbstractVector}},
197197
row_group_slots(cols, refpools, refarrays, hash, groups, skipmissing, sort === true)
198198
end
199199

200-
# Generic fallback method based on open adressing hash table
200+
# Generic fallback method based on open addressing hash table
201201
function row_group_slots(cols::Tuple{Vararg{AbstractVector}},
202202
refpools::Any, # Ignored
203203
refarrays::Any, # Ignored

src/other/utils.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -379,11 +379,11 @@ function _findall(B::BitVector)::Union{UnitRange{Int}, Vector{Int}}
379379
local I
380380
Bc = B.chunks
381381
Bi = 1 # block index
382-
i1 = 1 # index of current block beginng in B
382+
i1 = 1 # index of current block beginning in B
383383
i = 1 # index of the _next_ one in I
384384
c = Bc[1] # current block
385385

386-
start = -1 # the begining of ones block
386+
start = -1 # the beginning of ones block
387387
stop = -1 # the end of ones block
388388

389389
@inbounds while true # I not materialized
@@ -430,22 +430,22 @@ function _findall(B::BitVector)::Union{UnitRange{Int}, Vector{Int}}
430430
if c != 0 # mixed ones and zeros in block
431431
tz = trailing_zeros(c)
432432
lz = leading_zeros(c)
433-
co = c >> tz == (one(UInt64) << (64 - lz - tz)) - 1 # block of countinous ones in c
433+
co = c >> tz == (one(UInt64) << (64 - lz - tz)) - 1 # block of continuous ones in c
434434
if stop != -1 # already found block of ones and zeros, just not materialized
435435
I = Vector{Int}(undef, nnzB)
436436
for j in 1:i-1
437437
I[j] = start + j - 1
438438
end
439439
break
440-
elseif !co # not countinous ones
440+
elseif !co # not continuous ones
441441
I = Vector{Int}(undef, nnzB)
442442
if start != -1
443443
for j in 1:i-1
444444
I[j] = start + j - 1
445445
end
446446
end
447447
break
448-
else # countinous block of ones
448+
else # continuous block of ones
449449
if start != -1
450450
if tz > 0 # like __1111__ or 111111__
451451
I = Vector{Int}(undef, nnzB)

test/broadcasting.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ end
18551855
@test_throws ArgumentError df[!, [:x1, :x3]] .= "a"
18561856
end
18571857

1858-
@testset "broadcasting over heterogenous columns" begin
1858+
@testset "broadcasting over heterogeneous columns" begin
18591859
df = DataFrame(x=[1, 1.0, big(1), "1"])
18601860
f_identity(x) = x
18611861
@test df == f_identity.(df)

0 commit comments

Comments
 (0)