// populateDF populates the Dataframe from the values in the cache of initial
// lines. It will use those values to guess at the data types of the columns
// and only then will it populate the values.
populateDF populates the Dataframe from the values in the cache of initial
lines. It will use those values to guess at the data types of the columns
and only then will it populate the values.
// populateDF populates the Dataframe from the values in the cache of initial // lines . It will use those values to guess at the data types of the columns // and only then will it populate the values .
func populateDF(dfr *DFReader, state *dfReadState, df *DF) error {
	if len(state.cache) == 0 {
		return nil
	}
	err := dfr.setColTypes(df, state.cache)
	if err != nil {
		return err
	}
	df.AddRowsFromText(state.cache)
	if df.errCount != 0 {
		return dfErrorf("%s: %d errors parsing initial lines (first error: %s)",
			state.loc.Source(), df.errCount, df.errors[0])
	}
	return nil
}
func populateDF ( dfr * DFReader , state * dfReadState , df * DF ) error { if len ( state . cache ) == 0 { return nil } err := dfr . setColTypes ( df , state . cache ) if err != nil { return err } df . AddRowsFromText ( state . cache ) if df . errCount != 0 { return dfErrorf ( " " , state . loc . Source ( ) , df . errCount , df . errors [ 0 ] ) } return nil }
populateDF populates the Dataframe from the values in the cache of initial
lines.
populateDF populates the Dataframe from the values in the cache of initial lines .