Giter VIP home page Giter VIP logo

Comments (10)

pjebs avatar pjebs commented on May 14, 2024 1

I am reluctant to add more content to the readme because it is already too big. I want to readme to be nothing more than a general introduction.

The plan is:

  1. Create a comprehensive website based manual (not a wiki page) using Hugo.
  2. Truncate the readme significantly.

When I get some time I will do it.

I was hoping that using the godocs, people would eventually work out how to do the tasks you mentioned such as: retrieve single row, retrieve a single column etc - even if it takes 5 minutes instead of 30 seconds.

from dataframe-go.

pjebs avatar pjebs commented on May 14, 2024 1

Nametocolumn returns 2 values. So you can't inline.

You can use MustNameToColumn instead

from dataframe-go.

khughitt avatar khughitt commented on May 14, 2024

That's fair.

I agree that re-purposing the README.md as a manual is probably not ideal, so a separate Hugo-based manual sounds great.

That is also understandable regarding uisng godocs. The only reason is took longer really is because I'm still fairly new to Go programming in general, but even then, I was still able to figure most things out on my own with a little effort. I suspect other users with a bit more experience would have even less trouble.

Thanks for taking the time to respond and share your plans!

Feel free to close this issue, unless you want to use is to track progress on the manual front.

from dataframe-go.

pjebs avatar pjebs commented on May 14, 2024

Do you want to write the manual (under my guidance)?

from dataframe-go.

khughitt avatar khughitt commented on May 14, 2024

Realistically, I probably won't have the time to..

If you want though, perhaps you could create an outline for what you have in mind as far as the manual, and just hold off making it public / keep it in a separate branch initially.

Then, as I'm working through different things I can try and help fill in sections of it.

from dataframe-go.

khughitt avatar khughitt commented on May 14, 2024

Quick question -- how do you retrieve the values for a single column in a dataframe, given the column name?

I tried to figure it out from the code for DataFrame and Series, but have not had any luck..

from dataframe-go.

pjebs avatar pjebs commented on May 14, 2024

https://godoc.org/github.com/rocketlaunchr/dataframe-go#DataFrame.NameToColumn
https://godoc.org/github.com/rocketlaunchr/dataframe-go#DataFrame
df.Series[idx] will return the Series.

from dataframe-go.

pjebs avatar pjebs commented on May 14, 2024

If the series is a SeriesFloat64, you can then use the .Values field to get an []float64 of all the values. But otherwise you need to iterate to obtain the values.

from dataframe-go.

khughitt avatar khughitt commented on May 14, 2024

Ah got it. I had tries using df.Series[df.NameToColumn("foo")].Values, but this was for a SeriesInt64 column, so it wasn't working.

Thanks for the quick response and suggestions!

from dataframe-go.

khughitt avatar khughitt commented on May 14, 2024

Yep. I realized that shortly after posting. Haven't tried MustNameToColumn though.. I'll check it out. Thanks for the tip!

On the topic of documentation, one more thing that could be useful to consider including (probably in the README, and not the manual) would be a quick overview with what you see as the strengths (and limitations) of dataframe-go vs.

  1. qframe, and,
  2. gota.

from dataframe-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.