We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seeing below error when using from_csv after upgrading ruby to 3.0.3 Failure/Error: Daru::DataFrame.from_csv( mock_data, index: index, converters: ->(c) { c.to_d unless c.nil? }, headers: true, header_converters: header_converters )
ArgumentError: wrong number of arguments (given 2, expected 1)
.rvm/gems/ruby-3.0.3/gems/daru-0.3/lib/daru/io/io.rb:234:in `from_csv_hash_with_headers'
daru/lib/daru/io/io.rb
Line 234 in 3ac3d15
My guess or thought is at line 234 .parse(open(path), opts) should be .parse(open(path), **opts)
similar to parse in below.
Line 242 in 3ac3d15
because the way we pass args has changed upto my understanding in 3.0
Resolution: Changing line 234 .parse(open(path), opts) should be .parse(open(path), **opts) Resolved the issues locally
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Seeing below error when using from_csv after upgrading ruby to 3.0.3
Failure/Error:
Daru::DataFrame.from_csv(
mock_data,
index: index,
converters: ->(c) { c.to_d unless c.nil? },
headers: true,
header_converters: header_converters
)
.rvm/gems/ruby-3.0.3/gems/daru-0.3/lib/daru/io/io.rb:234:in `from_csv_hash_with_headers'
daru/lib/daru/io/io.rb
Line 234 in 3ac3d15
My guess or thought is
at line 234 .parse(open(path), opts) should be .parse(open(path), **opts)
similar to parse in below.
daru/lib/daru/io/io.rb
Line 242 in 3ac3d15
because the way we pass args has changed upto my understanding in 3.0
Resolution:
Changing line 234 .parse(open(path), opts) should be .parse(open(path), **opts)
Resolved the issues locally
The text was updated successfully, but these errors were encountered: