mirror of https://github.com/etcd-io/dbtester.git
vendor: update 'dataframe'
This commit is contained in:
parent
ddce796257
commit
acd2914c77
|
|
@ -1,5 +1,5 @@
|
|||
hash: e4221ab3d1946bec9cdc59b39500f727496088a18b9cc31889a46f608a6e562a
|
||||
updated: 2017-02-04T20:14:17.251307566-08:00
|
||||
hash: 35875650d8e05eff855d29a77c8ddf25cbb1be878950c57324f680ee3808401a
|
||||
updated: 2017-02-04T20:30:04.541079683-08:00
|
||||
imports:
|
||||
- name: bitbucket.org/zombiezen/gopdf
|
||||
version: 1c63dc69751bc45441c2ce1f56b631c55294b4d5
|
||||
|
|
@ -96,7 +96,7 @@ imports:
|
|||
- runtime/internal
|
||||
- utilities
|
||||
- name: github.com/gyuho/dataframe
|
||||
version: f9fe6fd9537b000e95362aefbcc0250679e1549b
|
||||
version: 73de2c550b1177c1640f3dacbbc1af00f913fedb
|
||||
- name: github.com/gyuho/psn
|
||||
version: 04e255d485181cbe8bc9002416a2ad3143f104ba
|
||||
subpackages:
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ import:
|
|||
- vg/vgpdf
|
||||
- vg/vgsvg
|
||||
- package: github.com/gyuho/dataframe
|
||||
version: f9fe6fd9537b000e95362aefbcc0250679e1549b
|
||||
version: 73de2c550b1177c1640f3dacbbc1af00f913fedb
|
||||
- package: github.com/gyuho/psn
|
||||
version: 04e255d485181cbe8bc9002416a2ad3143f104ba
|
||||
- package: github.com/hashicorp/consul
|
||||
|
|
|
|||
|
|
@ -62,6 +62,8 @@ func New() Frame {
|
|||
}
|
||||
|
||||
// NewFromRows creates Frame from rows.
|
||||
// Pass 'nil' header if first row is used as header strings.
|
||||
// Pass 'non-nil' header if the data starts from the first row, without header strings.
|
||||
func NewFromRows(header []string, rows [][]string) (Frame, error) {
|
||||
if len(rows) < 1 {
|
||||
return nil, fmt.Errorf("empty row %q", rows)
|
||||
|
|
@ -129,6 +131,8 @@ func NewFromRows(header []string, rows [][]string) (Frame, error) {
|
|||
}
|
||||
|
||||
// NewFromCSV creates a new Frame from CSV.
|
||||
// Pass 'nil' header if first row is used as header strings.
|
||||
// Pass 'non-nil' header if the data starts from the first row, without header strings.
|
||||
func NewFromCSV(header []string, fpath string) (Frame, error) {
|
||||
f, err := openToRead(fpath)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue