From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

use Test::Most tests => 2;
use strict;
use PDL;
my $N = 5;
my $colspec = [ x => sequence($N), y => 3 * sequence($N) ];
my $df = Data::Frame->with_traits( 'Rlike' )->new( columns => $colspec );
can_ok( $df, qw(head tail) );
is( $df->head(2)->number_of_rows, 2 );
done_testing;