Skip to content

Commit

Permalink
Add Elem method to DataFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
kniren committed Jan 20, 2017
1 parent 5bbed49 commit 4433750
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dataframe/dataframe.go
Original file line number Diff line number Diff line change
Expand Up @@ -1607,6 +1607,12 @@ func (df DataFrame) Maps() []map[string]interface{} {
return maps
}

// Return the element on row `r` and column `c`. Will panic if the index is out of
// bounds.
func (df DataFrame) Elem(r, c int) series.Element {
return df.columns[c].Elem(r)
}

// fixColnames assigns a name to the missing column names and makes it so that the
// column names are unique.
func fixColnames(colnames []string) {
Expand Down

0 comments on commit 4433750

Please sign in to comment.