Comments (9)
- Series string should have a function called ToFloat
- You can add more series to []chart.Series{cs}
- For plotting, everything is outsourced to the wcharczuk package, so you'll need to read it's docs
from dataframe-go.
- Series string should have a function called ToFloat
My s
(type: dataframe.Series) does not have this method
from dataframe-go.
https://pkg.go.dev/github.com/rocketlaunchr/dataframe-go#SeriesString.ToSeriesFloat64
or alternatively, when loading CSV data, use DictateDataType
to configure the column as float64 so you will already have a SeriesFloat64.
from dataframe-go.
You also don't need to save plot to file. See readme on usage.
from dataframe-go.
Ok, then. I understood conserning DictateDataType
. This is not my case as I don't know the name of columns in advance. But I cannot still understand how to extract SeriesString
form dataframe's columns which have type Series
.
from dataframe-go.
you need to type assert
from dataframe-go.
I would really appreciate it if you could share a small example. Because this construction is not correct:
v := df.Series[2]
v1 := dataframe.NewSeriesString("name", nil, v)
I cannot imagine what should I do now.
from dataframe-go.
https://medium.com/@rocketlaunchr.cloud/type-conversions-casting-type-assertions-fb295430e387
from dataframe-go.
https://pkg.go.dev/github.com/rocketlaunchr/dataframe-go#SeriesString.ToSeriesFloat64
Thanks for your assistance. Finally I was able to figure out the type assertions. Everything works now.
from dataframe-go.
Related Issues (20)
- CSV import does not support dictated type for fields with potential empty values HOT 2
- undefined: dataframe.LoadFromCSV HOT 5
- Reading from Parquet HOT 11
- Export to Parquet example HOT 1
- Appending a dataframe with another one. HOT 1
- How to set_index with two columns? HOT 2
- LoadFromJSON Not Working HOT 8
- How to remove duplicate rows in DataFrame? HOT 1
- Problem getting the package HOT 4
- is group by supported? HOT 1
- Bad import, was an upstream dependency deleted? HOT 5
- Error to read parquet with latest parquet-go HOT 21
- Error to read csv encoding utf-8 with bom and export back to parquet HOT 28
- Indirect dependency `github.com/blend/go-sdk v1.1.1` does not exist HOT 6
- Error to import csv, raised parquet-go error HOT 4
- Progress for re-write of dataframe-go? HOT 14
- DF Practice
- Add equivalent of `pandas`.`read_html`
- how to achieve multi index ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dataframe-go.