Skip to content

Commit 2da6499

Browse files
committed
Rename Go module to github.com/symflower/gota (from github.com/go-gota/gota)
1 parent b9d7bdd commit 2da6499

File tree

7 files changed

+34
-35
lines changed

7 files changed

+34
-35
lines changed

README.md

+26-27
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
Gota: DataFrames, Series and Data Wrangling for Go
2-
==================================================
1+
# Gota: DataFrames, Series and Data Wrangling for Go
32

43
Meet us on Slack: Slack: [gophers.slack.com](https://gophers.slack.com) #go-gota ([invite](https://gophersinvite.herokuapp.com/))
54

65
This is an implementation of DataFrames, Series and data wrangling
76
methods for the Go programming language. The API is still in flux so
8-
*use at your own risk*.
7+
_use at your own risk_.
98

10-
DataFrame
11-
---------
9+
## DataFrame
1210

1311
The term DataFrame typically refers to a tabular dataset that can be
1412
viewed as a two dimensional table. Often the columns of this dataset
@@ -25,6 +23,7 @@ them, summarize the data for individual features or apply functions to
2523
entire rows or columns, all while keeping column type integrity.
2624

2725
### Usage
26+
2827
#### Loading data
2928

3029
DataFrames can be constructed passing Series to the dataframe.New constructor
@@ -38,7 +37,7 @@ df := dataframe.New(
3837
)
3938
```
4039

41-
You can also load the data directly from other formats.
40+
You can also load the data directly from other formats.
4241
The base loading function takes some records in the
4342
form `[][]string` and returns a new DataFrame from there:
4443

@@ -190,7 +189,7 @@ filAlt := df.FilterAggregation(
190189
dataframe.Or,
191190
dataframe.F{"A", series.Eq, "a"},
192191
dataframe.F{"B", series.Greater, 4},
193-
)
192+
)
194193
```
195194

196195
Filters inside Filter are combined as OR operations, alternatively we can use `df.FilterAggragation` with `dataframe.Or`.
@@ -199,7 +198,7 @@ If we want to combine filters with AND operations, we can use `df.FilterAggregat
199198

200199
```go
201200
fil := df.FilterAggregation(
202-
dataframe.And,
201+
dataframe.And,
203202
dataframe.F{"A", series.Eq, "a"},
204203
dataframe.F{"D", series.Eq, true},
205204
)
@@ -219,14 +218,15 @@ fil2 := fil.Filter(
219218
)
220219
```
221220

222-
Filtering is based on predefined comparison operators:
223-
* `series.Eq`
224-
* `series.Neq`
225-
* `series.Greater`
226-
* `series.GreaterEq`
227-
* `series.Less`
228-
* `series.LessEq`
229-
* `series.In`
221+
Filtering is based on predefined comparison operators:
222+
223+
- `series.Eq`
224+
- `series.Neq`
225+
- `series.Greater`
226+
- `series.GreaterEq`
227+
- `series.Less`
228+
- `series.LessEq`
229+
- `series.In`
230230

231231
However, if these filter operations are not sufficient, we can use user-defined comparators.
232232
We use `series.CompFunc` and a user-defined function with the signature `func(series.Element) bool` to provide user-defined filters to `df.Filter` and `df.FilterAggregation`.
@@ -255,7 +255,7 @@ This example filters rows based on whether they have a cell value starting with
255255
GroupBy && Aggregation
256256

257257
```go
258-
groups := df.GroupBy("key1", "key2") // Group by column "key1", and column "key2"
258+
groups := df.GroupBy("key1", "key2") // Group by column "key1", and column "key2"
259259
aggre := groups.Aggregation([]AggregationType{Aggregation_MAX, Aggregation_MIN}, []string{"values", "values2"}) // Maximum value in column "values", Minimum value in column "values2"
260260
```
261261

@@ -359,7 +359,7 @@ if a.Err != nil {
359359
fmt.Println(flights)
360360

361361
> [336776x20] DataFrame
362-
>
362+
>
363363
> X0 year month day dep_time sched_dep_time dep_delay arr_time ...
364364
> 0: 1 2013 1 1 517 515 2 830 ...
365365
> 1: 2 2013 1 1 533 529 4 850 ...
@@ -373,7 +373,7 @@ fmt.Println(flights)
373373
> 9: 10 2013 1 1 558 600 -2 753 ...
374374
> ... ... ... ... ... ... ... ... ...
375375
> <int> <int> <int> <int> <int> <int> <int> <int> ...
376-
>
376+
>
377377
> Not Showing: sched_arr_time <int>, arr_delay <int>, carrier <string>, flight <int>,
378378
> tailnum <string>, origin <string>, dest <string>, air_time <int>, distance <int>, hour <int>,
379379
> minute <int>, time_hour <string>
@@ -402,8 +402,7 @@ func (m matrix) T() mat.Matrix {
402402
}
403403
```
404404

405-
Series
406-
------
405+
## Series
407406

408407
Series are essentially vectors of elements of the same type with
409408
support for missing values. Series are the building blocks for
@@ -423,12 +422,12 @@ For more information about the API, make sure to check:
423422
- [dataframe godoc][3]
424423
- [series godoc][4]
425424

426-
License
427-
-------
425+
## License
426+
428427
Copyright 2016 Alejandro Sanchez Brotons
429428

430429
Licensed under the Apache License, Version 2.0 (the "License"); you
431-
may not use this file except in compliance with the License. You may
430+
may not use this file except in compliance with the License. You may
432431
obtain a copy of the License at
433432

434433
http://www.apache.org/licenses/LICENSE-2.0
@@ -440,6 +439,6 @@ implied. See the License for the specific language governing
440439
permissions and limitations under the License.
441440

442441
[1]: https://github.com/gonum
443-
[2]: https://github.com/go-gota/gota
444-
[3]: https://godoc.org/github.com/go-gota/gota/dataframe
445-
[4]: https://godoc.org/github.com/go-gota/gota/series
442+
[2]: https://github.com/symflower/gota
443+
[3]: https://godoc.org/github.com/symflower/gota/dataframe
444+
[4]: https://godoc.org/github.com/symflower/gota/series

dataframe/benchmark_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strconv"
66
"testing"
77

8-
"github.com/go-gota/gota/dataframe"
9-
"github.com/go-gota/gota/series"
8+
"github.com/symflower/gota/dataframe"
9+
"github.com/symflower/gota/series"
1010
)
1111

1212
func generateSeries(n, rep int) (data []series.Series) {

dataframe/dataframe.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"strings"
1414
"unicode/utf8"
1515

16-
"github.com/go-gota/gota/series"
16+
"github.com/symflower/gota/series"
1717
"golang.org/x/net/html"
1818
"golang.org/x/net/html/atom"
1919
)

dataframe/dataframe_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
"math"
1212

13-
"github.com/go-gota/gota/series"
13+
"github.com/symflower/gota/series"
1414
)
1515

1616
// compareFloats compares floating point values up to the number of digits specified.

dataframe/examples_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/go-gota/gota/dataframe"
8-
"github.com/go-gota/gota/series"
7+
"github.com/symflower/gota/dataframe"
8+
"github.com/symflower/gota/series"
99
)
1010

1111
func ExampleNew() {

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/go-gota/gota
1+
module github.com/symflower/gota
22

33
go 1.23.6
44

series/benchmarks_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"strconv"
66
"testing"
77

8-
"github.com/go-gota/gota/series"
8+
"github.com/symflower/gota/series"
99
)
1010

1111
func generateInts(n int) (data []int) {

0 commit comments

Comments
 (0)