STAT 100 Lecture 3: select rows and columns
last five rows :
Cat -5 :]
Cat .5;.,])not same
9stop @
cat 0:3 ]
(a[0:3 ,-2 :]
We prefer write code in names (more direct What is
happening in the code from reading )
we cannot flip the column name order if we
are using
"
i
"
But if we just want to pull out some columns ,just
simply use
""""
(cat
'
name
'].head l)
LCAII 'name 's ].head c) g.
Different types
type (-38 ),typel -39 )
hm
Aline numbers
data frame
}
series \,
depends on what you pass in
emails .be locate
(at 'Year
']==2017 Boolean operation
0False
'false
2false Name .
'Year
3False deype :boot
4false