Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
Activity
Rick Hull
@rickhull
is there any way to revert or steer clear from breakage in master?
Victor Shepelev
@zverok
@rickhull as far as I can understand, there is kind of rush currently trying to do to much things at once. I hate the fact that bad code was merged, so I'll try to do my best tomorrow to have working master tomorrow. As far I can understand, @v0dro is busy with another project, so probably I am the next in charge :(
Rick Hull
@rickhull
ok, no worries :)
sorry if I've been overbearing, just new to the project :)
no rush at all
Victor Shepelev
@zverok
yeah, it is ok, to be honest the current state is kinda doubtful, though we currently prefer to move quickly (sometimes with ugly consequences) rather than stay conservative
Rick Hull
@rickhull
in the meantime, I have some questions about how to use and reason with data frames
i have a specific example in mind, but let me hang on to it for a bit
it seems to me that a data frame represents a set of parameters across a population (or iteration)
maybe we are looking at 0-100 for a set of individuals, or one individual from t=0-100
but one event has a consistent representation whether xy, xyz, or abcwtfbbq
Rick Hull
@rickhull
an event is a set of associated attributes, no?
is that event also a vector? sure
but usually we talk about one attribute over say time, that's a vector
so one view is the xyz is a vector, and we have N of them
the other view is x0..N is a vector
and we have two more
y and z
Rick Hull
@rickhull
in daru, there is a row / vector distinction
how is this made? is it arbitrary?
Rick Hull
@rickhull
let me make this more concrete. say I have 3D coordinates over time. xyz t=0..N
perhaps a table of x, y, z, t
maybe the t intervals are regular, maybe not
which are the vectors and rows if I want to meadure central tendency in 3D space
*measure -- sorry, busted elbow
Athitya Kumar
@athityakumar
@rickhull @zverok : Build is passing now. :smile:
Victor Shepelev
@zverok
@Shekharrajak
=> #<Daru::Index(4): {admit, gpa, gre, rank}>
irb(main):018:0> a1 = Daru::Index.new([:admit, :gpa, :gre, :rank])
=> #<Daru::Index(4): {admit, gpa, gre, rank}>
irb(main):019:0> a1.include?('gpa')
=> false
output must be true, right ?
Ananyo Maiti
@ananyo2012
@Shekharrajak You are using a symbol in the array but string in the query
al.include?(:gpa) should give true
@Shekharrajak
Thanks @ananyo2012, it was my mistake.
Ananyo Maiti
@ananyo2012
Np :blush:
Ananyo Maiti
@ananyo2012
I am getting an error while using the Daru dataframe plot method
NameError: uninitialized constant Nyaplot::Frame::IRuby
I have installed iruby and also tried to run it in a terminal instance in iruby notebook
Still getting the same error
Is there anything I should require before using the plot method?
@Shekharrajak
I am also getting similar error.
Can anyone share any link or example for how to use from_activerecord?
Athitya Kumar
@athityakumar

Build is failing on master - but I think the issue is on Travis CI's end.

Gem::RemoteFetcher::UnknownHostError: timed out

Ananyo Maiti
@ananyo2012
@Shekharrajak in case you didn't find. You need to setup an active record connect with a valid database to use from_activerecord
@Shekharrajak
Thanks @ananyo2012 , how can we do it? I want to test it.
Ananyo Maiti
@ananyo2012
Before that make sure you have the database already present
Athitya Kumar
@athityakumar
Travis CI build is still failing on master - and this time, it's on us - Rubocop offenses.
Pankaj C
@cpankaj
@v0dro How soon can we expect an official release with #341 and #331 fix?
Matt Steen
@MatthewSteen
hey devs, i'm excited to try out daru and was wondering what the reasons were for choosing the spreadsheet gem dependency over other options?
(i've been using rubyXL for my work)
Victor Shepelev
@zverok
@MatthewSteen Historical reasons. Currently there is a great rework effort for import/export, done in https://github.com/sciruby/daru-io repo. IIRC, it uses both spreadsheet (for old Excel-2003) and RubyXL (for new format support)
Matt Steen
@MatthewSteen
thanks for the background @zverok. i saw the spreadsheet dep there, but no rubyXL. not sure the choice will change my work, since we compared the two before choosing and didn't see much difference.