Skip to content

Commit

Permalink
Merge 9a45d8a into 92831df
Browse files Browse the repository at this point in the history
  • Loading branch information
ExpandingMan committed Mar 7, 2018
2 parents 92831df + 9a45d8a commit dbfed2e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/abstractdataframe/abstractdataframe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ describe(df)
```
"""
StatsBase.describe(df::AbstractDataFrame) = describe(STDOUT, df)
StatsBase.describe(df::AbstractDataFrame) = describe(stdout, df)
function StatsBase.describe(io, df::AbstractDataFrame)
for (name, col) in eachcol(df)
println(io, name)
Expand Down
2 changes: 1 addition & 1 deletion src/abstractdataframe/io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function printtable(df::AbstractDataFrame;
separator::Char = ',',
quotemark::Char = '"',
nastring::AbstractString = "missing")
printtable(STDOUT,
printtable(stdout,
df,
header = header,
separator = separator,
Expand Down
22 changes: 11 additions & 11 deletions src/abstractdataframe/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ end
#'
#' @examples
#'
#' ourshowcompact(STDOUT, "abc")
#' ourshowcompact(STDOUT, 10000)
#' ourshowcompact(stdout, "abc")
#' ourshowcompact(stdout, 10000)
ourshowcompact(io::IO, x::Any) = showcompact(io, x) # -> Void
ourshowcompact(io::IO, x::AbstractString) = escape_string(io, x, "") # -> Void
ourshowcompact(io::IO, x::Symbol) = ourshowcompact(io, string(x)) # -> Void
Expand Down Expand Up @@ -225,7 +225,7 @@ end
#' @examples
#'
#' df = DataFrame(A = 1:3, B = ["x", "y", "z"])
#' showrowindices(STDOUT, df, 1:2, [1, 1, 5], 1, 2)
#' showrowindices(stdout, df, 1:2, [1, 1, 5], 1, 2)
function showrowindices(io::IO,
df::AbstractDataFrame,
rowindices::AbstractVector{Int},
Expand Down Expand Up @@ -307,7 +307,7 @@ end
#' @examples
#'
#' df = DataFrame(A = 1:3, B = ["x", "y", "z"])
#' showrows(STDOUT, df, 1:2, 3:3, [1, 1, 5], false, :Row, true)
#' showrows(stdout, df, 1:2, 3:3, [1, 1, 5], false, :Row, true)
function showrows(io::IO,
df::AbstractDataFrame,
rowindices1::AbstractVector{Int},
Expand Down Expand Up @@ -429,7 +429,7 @@ end
#' @examples
#'
#' df = DataFrame(A = 1:3, B = ["x", "y", "z"])
#' show(STDOUT, df, false, :Row, true)
#' show(stdout, df, false, :Row, true)
function Base.show(io::IO,
df::AbstractDataFrame,
allcols::Bool = false,
Expand Down Expand Up @@ -464,7 +464,7 @@ end
#' @exported
#' @description
#'
#' Render an AbstractDataFrame to STDOUT with or without chunking. See
#' Render an AbstractDataFrame to stdout with or without chunking. See
#' other `show` documentation for details. This is mainly used to force
#' showing the AbstractDataFrame in chunks.
#'
Expand All @@ -480,7 +480,7 @@ end
#' show(df, true)
function Base.show(df::AbstractDataFrame,
allcols::Bool = false) # -> Void
return show(STDOUT, df, allcols)
return show(stdout, df, allcols)
end

#' @exported
Expand All @@ -504,7 +504,7 @@ end
#' @examples
#'
#' df = DataFrame(A = 1:3, B = ["x", "y", "z"])
#' showall(STDOUT, df, false, :Row, true)
#' showall(stdout, df, false, :Row, true)
function Base.showall(io::IO,
df::AbstractDataFrame,
allcols::Bool = true,
Expand All @@ -529,7 +529,7 @@ end
#' @exported
#' @description
#'
#' Render all of the rows of an AbstractDataFrame to STDOUT. See
#' Render all of the rows of an AbstractDataFrame to stdout. See
#' `showall` documentation for details.
#'
#' @param df::AbstractDataFrame An AbstractDataFrame.
Expand All @@ -544,7 +544,7 @@ end
#' showall(df, true)
function Base.showall(df::AbstractDataFrame,
allcols::Bool = true) # -> Void
showall(STDOUT, df, allcols)
showall(stdout, df, allcols)
return
end

Expand Down Expand Up @@ -605,5 +605,5 @@ end
#' df = DataFrame(A = 1:3, B = ["x", "y", "z"])
#' showcols(df)
function showcols(df::AbstractDataFrame, all::Bool=false, values::Bool=true)
showcols(STDOUT, df, all, values) # -> Void
showcols(stdout, df, all, values) # -> Void
end
2 changes: 1 addition & 1 deletion src/dataframerow/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#'
#' df = DataFrame(A = 1:3, B = ["x", "y", "z"])
#' for r in eachrow(df)
#' show(STDOUT, r)
#' show(stdout, r)
#' end
function Base.show(io::IO, r::DataFrameRow)
labelwidth = mapreduce(n -> length(string(n)), max, _names(r)) + 2
Expand Down

0 comments on commit dbfed2e

Please sign in to comment.