Comments (2)
The and
clause you're using is Ruby boolean and
, which cannot be modified. Moreover such piecewise boolean operations aren't currently supported on Vector. Use a Daru::Core::Query::BoolArray
for that.
Or alternatively:
vtrue = Daru::Vector.new([true]*2)
vfalse = Daru::Vector.new([false]*2)
bool = (vfalse.eq(false).and(vtrue.eq(true)))
# OR
bool = (vfalse.eq(false) & vtrue.eq(true))
This operation will return a BoolArray
.
from daru.
Thanks, this works
from daru.
Related Issues (20)
- Printing to Terminal HOT 8
- `add_vector` should not require name of named Vector. HOT 1
- Tidy data HOT 2
- Map method. Should Daru::Vector return an Array? HOT 3
- Vector#uniq fails on category vectors HOT 1
- Incostencies in behaviour of DataFrame. HOT 2
- Adding vector through direct assignment fails when DataFrame is empty
- Add way to generate DataFrame from active_record with aggregated fields HOT 3
- Suggestion: DataFrame to two-dimensional array HOT 4
- Offsets should be comparable [feature request]
- Daru::DateTimeIndexHelper unable to infer offsets that do not match a specifc Daru::DateTimeIndexHelper::TIME_INTERVALS
- set_index fails if data_frame size is zero
- Status of this Project? HOT 19
- from_csv via String HOT 2
- get_group unpredicted behaviour in case of Sorting applied HOT 2
- Github Bot to maintain / track the issues & open PRs
- Daru::DataFrame.from_csv ArgumentError: wrong number of arguments (given 2, expected 1)
- data frame and vector min and max slow
- How to speed up creating dataframe faster for large dataset HOT 1
- Suggested update to `DataFrame#to_matrix` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from daru.