We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d01295 commit 6ff4106Copy full SHA for 6ff4106
lib/Data/Frame/Util.pm
@@ -164,10 +164,8 @@ fun guess_and_convert_to_pdl ( (ArrayRef | Value | ColumnLike) $x,
164
$strings_as_factors
165
? PDL::Factor->new($x)
166
: PDL::SV->new($x);
167
- my @is_bad = List::AllUtils::indexes { &$is_na($_) } @$x;
168
- if (@is_bad) {
169
- $piddle = $piddle->setbadif( pdl( \@is_bad ) );
170
- }
+ my $is_bad = pdl( [ map { &$is_na($_) } @$x ] );
+ $piddle = $piddle->setbadif($is_bad);
171
return $piddle;
172
}
173
0 commit comments