// Clone creates an empty copy of the dataframe with the same column details
// and column instances but with no data. The error values are all set to
// their respective zero values.
Clone creates an empty copy of the dataframe with the same column details
and column instances but with no data. The error values are all set to
their respective zero values.
// Clone creates an empty copy of the dataframe with the same column details // and column instances but with no data . The error values are all set to // their respective zero values .
func (df *DF) Clone() *DF {
	cloneVal := &DF{
		mci:        df.mci.Clone(),
		floatCols:  make([][]FloatVal, len(df.floatCols)),
		boolCols:   make([][]BoolVal, len(df.boolCols)),
		intCols:    make([][]IntVal, len(df.intCols)),
		stringCols: make([][]StringVal, len(df.stringCols)),
	}
	return cloneVal
}
func ( df * DF ) Clone ( ) * DF { cloneVal := & DF { mci : df . mci . Clone ( ) , floatCols : make ( [ ] [ ] FloatVal , len ( df . floatCols ) ) , boolCols : make ( [ ] [ ] BoolVal , len ( df . boolCols ) ) , intCols : make ( [ ] [ ] IntVal , len ( df . intCols ) ) , stringCols : make ( [ ] [ ] StringVal , len ( df . stringCols ) ) , } return cloneVal }
Clone creates an empty copy of the dataframe with the same column details
and column instances but with no data.
Clone creates an empty copy of the dataframe with the same column details and column instances but with no data .