Open d3an opened 3 years ago
I also think about it, but it seems to me more correct to make parameters in dataframe.String(). Something like:
func (df DataFrame) String(args ...interface{}) (str string) {
}
or
type Parameters struct {
ShortRow bool
ShortCol bool
...
}
func (df DataFrame) String(prm Parameters) (str string) {
}
What do you think about this?
I also think about it, but it seems to me more correct to make parameters in dataframe.String(). Something like...
+1 to this, if there is support I'd be happy to fork and make this PR
Right now,
dataframe.print()
is a private method only used bydataframe.String()
. Can we expose this method to users, so that they can print a full dataframe if they'd like, instead of just a shortened preview?Basically, just change
dataframe.print()
to bedataframe.Print()
.