STAT 100 Lecture 3: select rows and columns

28 views2 pages
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
Unlock document

This preview shows half of the first page of the document.
Unlock all 2 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related textbook solutions