vatlab / sos-ruby

SoS Notebook extension for ruby
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Support for pandas.DataFrame #3

Closed HenryLeongStat closed 6 years ago

HenryLeongStat commented 6 years ago

Simply use arrow and parquet to do so. The tutorial is Japanese, but we can understand 80% of it because of the Chinese characters. :)

Ref: https://slide.rabbit-shocker.org/authors/kou/data-science-rb/

HenryLeongStat commented 6 years ago

Using parquet or feather in Ruby might need to install red-data-tools first, but it is only built on couple linux platforms. So we will convert pandas.df using string for now.

HenryLeongStat commented 6 years ago

Daru::DataFrame will be a good fit since it is from SciRuby and has more users.

Writing a long syntax to turn Daru::DataFrame into a pandas.DataFrame string. Don't want to use .csv to do the conversion...

HenryLeongStat commented 6 years ago

Something like:

screen shot 2018-07-02 at 6 05 09 pm
HenryLeongStat commented 6 years ago

Looks good! :)

screen shot 2018-07-02 at 6 19 08 pm screen shot 2018-07-02 at 6 19 16 pm