No commit activity in last 3 years
No release in over 3 years
Red Datasets Pandas adds `#to_pandas` method to each dataset and its table in Red Datasets. You can get data as Pandas::DataFrame class object.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Red Datasets Pandas

Description

Red Datasets Pandas adds Pandas::DataFrame object export feature to Red Datasets.

Red Datasets Pandas adds #to_pandas method to each dataset and its table in Red Datasets. You can get data as Pandas::DataFrame class object.

Install

% gem install red-datasets-pandas

Usage

Here is an example to export penguins data as Pandas::DataFrame objects by Datasets::Dataset#to_pandas and Datasets::Table#to_narray:

require "datasets-numo-narray"

penguins = Datasets::Penguins.new
puts iris.to_pandas(:flipper_length_mm,
                    :body_mass_g,
                    :species)

penguins_table = penguins.to_table
puts iris_table.to_pandas(:flipper_length_mm,
                          :bill_depth_mm,
                          :sex,
                          :year)

License

The MIT license. See LICENSE.txt for details.