8bitzz / blogs

0 stars 0 forks source link

Pandas Basic (Part I: Indexing, Selecting & Assigning) #9

Open 8bitzz opened 3 years ago

8bitzz commented 3 years ago

Indexing, Selecting, Assigning

Choosing between loc and iloc

Manipulating the index

Assigning data with a constant value or with an iterable of values

reviews['critic'] = 'everyone'
reviews['index_backwards'] = range(len(reviews), 0, -1)

Example

8bitzz commented 3 years ago

Indexing, Selecting, Assigning

Choosing between loc and iloc

Manipulating the index

Assigning data with a constant value or with an iterable of values

reviews['critic'] = 'everyone'
reviews['index_backwards'] = range(len(reviews), 0, -1)

Example