// RowCount returns the number of rows in the dataframe
RowCount returns the number of rows in the dataframe
// RowCount returns the number of rows in the dataframe
func (df *DF) RowCount() int {
	if len(df.mci.valIdx) == 0 {
		return 0
	}
	i := df.mci.valIdx[0]
	colType := df.mci.info[0].colType
	switch colType {
	case ColTypeBool:
		return len(df.boolCols[i])
	case ColTypeInt:
		return len(df.intCols[i])
	case ColTypeFloat:
		return len(df.floatCols[i])
	case ColTypeString:
		return len(df.stringCols[i])
	}
	panic(fmt.Sprintf("Unexpected column type: %d", colType))
}
func ( df * DF ) RowCount ( ) int { if len ( df . mci . valIdx ) == 0 { return 0 } i := df . mci . valIdx [ 0 ] colType := df . mci . info [ 0 ] . colType switch colType { case ColTypeBool : return len ( df . boolCols [ i ] ) case ColTypeInt : return len ( df . intCols [ i ] ) case ColTypeFloat : return len ( df . floatCols [ i ] ) case ColTypeString : return len ( df . stringCols [ i ] ) } panic ( fmt . Sprintf ( " " , colType ) ) }
RowCount returns the number of rows in the dataframe
RowCount returns the number of rows in the dataframe