Created
August 20, 2015 18:03
-
-
Save v0dro/0755acbe9c72fe091ffb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=Daru::DataFrame.from_csv('spec/fixtures/sales-funnel.csv',headers: true) | |
=> | |
#<Daru::DataFrame:84880950 @name = 42706995-535d-4181-9a13-9ba2f4f65b3f @size = 17> | |
account manager name price product quantity rep status | |
0 714466 Debra Henl Trantow-Ba 30000 CPU 1 Craig Book presented | |
1 714466 Debra Henl Trantow-Ba 10000 Software 1 Craig Book presented | |
2 714466 Debra Henl Trantow-Ba 5000 Maintenanc 2 Craig Book pending | |
3 737550 Debra Henl Fritsch, R 35000 CPU 1 Craig Book declined | |
4 146832 Debra Henl Kiehn-Spin 65000 CPU 2 Daniel Hil won | |
5 218895 Debra Henl Kulas Inc 40000 CPU 2 Daniel Hil pending | |
6 218895 Debra Henl Kulas Inc 10000 Software 1 Daniel Hil presented | |
7 412290 Debra Henl Jerde-Hilp 5000 Maintenanc 2 John Smith pending | |
8 740150 Debra Henl Barton LLC 35000 CPU 1 John Smith declined | |
9 141962 Fred Ander Herman LLC 65000 CPU 2 Cedric Mos won | |
10 163416 Fred Ander Purdy-Kund 30000 CPU 1 Cedric Mos presented | |
11 239344 Fred Ander Stokes LLC 5000 Maintenanc 1 Cedric Mos pending | |
12 239344 Fred Ander Stokes LLC 10000 Software 1 Cedric Mos presented | |
13 307599 Fred Ander Kassulke, 7000 Maintenanc 3 Wendy Yule won | |
14 688981 Fred Ander Keeling LL 100000 CPU 5 Wendy Yule won | |
... ... ... ... ... ... ... ... ... | |
[20] pry(main)> a.vectors | |
=> #<Daru::Index:0xa1e5820 | |
@keys=[:account, :manager, :name, :price, :product, :quantity, :rep, :status], | |
@relation_hash={:account=>0, :manager=>1, :name=>2, :price=>3, :product=>4, :quantity=>5, :rep=>6, :status=>7}, | |
@size=8> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment