NAME

Data::Frame::Partial::Sugar - Partial class for data frame syntax sugar

VERSION

version 0.006004

SYNOPSIS

use Data::Frame::Examples qw(mtcars);

# A key of string type does at() or set()
my $col1 = $mtcars->{mpg};                  # $mtcars->at('mpg');
$mtcars->{kpg} = $mtcars->{mpg} * 1.609;    # $mtcars->set('kpg', ...);

# A key of reference does slice() 
my $col2 = $mtcars->{ ['mpg'] };            # $mtcars->slice(['mpg']);
my $subset = $mtcars->{ [qw(mpg cyl)] };    # $mtcars->slice([qw(mpg cyl]);

DESCRIPTION

Do not use this module in your code. This is only internally used by Data::Frame.

SEE ALSO

Data::Frame

AUTHORS

  • Zakariyya Mughal <zmughal@cpan.org>

  • Stephan Loyd <sloyd@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014, 2019-2022 by Zakariyya Mughal, Stephan Loyd.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.