-
Notifications
You must be signed in to change notification settings - Fork 11
Overwrites DataFrames describe function #33
Comments
Ideally |
It's from StatsBase, right?
|
Yes, but unless we want a dependency on AbstractTables in StatsBase (which I don't think we should do), we'd still have to define the generic |
I'm confused: why does using DataFrames and DataTables result in one's describe overwriting the other if they're both extending the method from StatsBase? |
Ohhhhhhhhhhhhhhhhhhhhhhhh heh, DataFrames and DataTables both |
Both have this: StatsBase.describe(nv::AbstractArray) = describe(STDOUT, nv) That is the first of three overwriting messages I'm getting. |
And then there is: function StatsBase.describe{T<:Number}(io, dv::AbstractArray{T})
function StatsBase.describe{T}(io, dv::AbstractArray{T}) in both. I guess those three methods should just move to |
Assuming they don't contain code specific to |
Well, they actually contain code that is |
Maybe replace those abstract array methods with an non-exported method for single columns? |
I think A version of For |
I have a lot of situations where I need both
DataFrames
andDataTables
loaded at the same time, e.g. I start out with:using DataFrames, DataTables
Right now I always get a warning that
DataTables
overwritesdescribe
fromDataFrames
, which is not ideal.I guess the solution for this is to move the function definition in some common base package, and then both
DataFrames
andDataTables
will add a method? Would that beAbstractTables
? If so, could we maybe start with a really bare bonesAbstractTables
now, that only holds that one definition, and then later more stuff can be added?The text was updated successfully, but these errors were encountered: