Skip to content

Commit

Permalink
Import eachcol and eachrow from Base if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Dec 26, 2019
1 parent c3444ea commit 9f1d862
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/DataFrames.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ using Reexport, SortingAlgorithms, Compat, Unicode, PooledArrays, DataAPI
using Base.Sort, Base.Order, Base.Iterators
using Tables, TableTraits, IteratorInterfaceExtensions

import Compat.eachcol,
Compat.eachrow,
DataAPI.All,
import DataAPI.All,
DataAPI.Between,
DataAPI.describe,
Tables.columnindex,
Expand Down Expand Up @@ -52,7 +50,10 @@ export AbstractDataFrame,
unique!,
unstack

if VERSION < v"1.1.0-DEV.792"
if VERSION >= v"1.1.0-DEV.792"
import Base.eachcol, Base.eachrow
else
import Compat.eachcol, Compat.eachrow
export eachcol, eachrow
end

Expand Down

0 comments on commit 9f1d862

Please sign in to comment.