[#81999] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — ko1@...
Issue #13737 has been updated by ko1 (Koichi Sasada).
4 messages
2017/07/11
[#82005] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — nobu@...
Issue #13737 has been updated by nobu (Nobuyoshi Nakada).
3 messages
2017/07/12
[#82102] Re: register_fstring_tainted:FL_TEST_RAW(str, RSTRING_FSTR) — Eric Wong <normalperson@...>
Koichi Sasada <ko1@atdot.net> wrote:
4 messages
2017/07/18
[#82151] [Ruby trunk Feature#13637] [PATCH] tool/runruby.rb: test with smallest possible machine stack — Rei.Odaira@...
Issue #13637 has been updated by ReiOdaira (Rei Odaira).
3 messages
2017/07/24
[ruby-core:81881] [Ruby trunk Feature#13706] Allow CSV#delete to delete multiple columns or add #delete_columns method
From:
vla-dy@...
Date:
2017-07-02 09:08:39 UTC
List:
ruby-core #81881
Issue #13706 has been reported by wowinter13 (Vladislav Dyachenko).
----------------------------------------
Feature #13706: Allow CSV#delete to delete multiple columns or add #delete_columns method
https://bugs.ruby-lang.org/issues/13706
* Author: wowinter13 (Vladislav Dyachenko)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
I duplicated the main report message from this PR: https://github.com/ruby/csv/pull/4
The basic idea is that now we can delete only one column using #delete
`csv_table.delete("PassengerId")
csv_table.delete("Survived")
csv_table.delete("Name")
csv_table.to_csv`
The best working way for me to do it with multiple columns:
`
to_del = ["Name", "Ticket"]
csv_table = datus.by_col!.delete_if { |name, values| !to_del.include? name}`
But maybe it should work like this?
`
to_del = ["Name", "Ticket"]
data.delete(to_del)`
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>