// makeDF will create a dataframe and then populate those members that can be
// set from the DFReader values
makeDF will create a dataframe and then populate those members that can be
set from the DFReader values
// makeDF will create a dataframe and then populate those members that can be // set from the DFReader values
func (dfr DFReader) makeDF() (*DF, error) {
	df, err := NewDF()
	if err != nil {
		return nil, err
	}
	if len(dfr.colNames) > 0 {
		err := df.SetColNames(dfr.colNames...)
		if err != nil {
			return nil, err
		}
	}
	if len(dfr.colTypes) > 0 {
		err := df.SetColTypes(dfr.colTypes...)
		if err != nil {
			return nil, err
		}
	}
	return df, nil
}
func ( dfr DFReader ) makeDF ( ) ( * DF , error ) { df , err := NewDF ( ) if err != nil { return nil , err } if len ( dfr . colNames ) > 0 { err := df . SetColNames ( dfr . colNames ... ) if err != nil { return nil , err } } if len ( dfr . colTypes ) > 0 { err := df . SetColTypes ( dfr . colTypes ... ) if err != nil { return nil , err } } return df , nil }
makeDF will create a dataframe and then populate those members that can be
set from the DFReader values
makeDF will create a dataframe and then populate those members that can be set from the DFReader values