Data analysis with python and Pandas - Select rows and column Tutorial 9

Опубликовано: 09 Август 2016
на канале: MyStudy
78,983
740

Hi Guys checkout my udemy course at just 9.99$

https://www.udemy.com/data-science-wi...

https://www.udemy.com/manipulate-exce...

https://www.udemy.com/learn-docker-fr...

https://www.udemy.com/learn-in-memory...

https://www.udemy.com/learn-event-pro...

https://www.udemy.com/machine-learnin...

https://www.udemy.com/data-science-an...


Visit complete course on Data Science with Python :

https://www.udemy.com/data-science-wi...

For All other visit my udemy profile at :

https://www.udemy.com/user/ankitmistry/


This tutorial will explain how to select individual row, or column and cell or group of cell of DataFrame object in python pandas.


import pandas as pd

# Read File
df = pd.read_csv('train.csv')
df.head()


# Select one column
df['Name']


# Select more than one column
df.columns
df[['Name','Fare']]


# Select one Row or more than one row
df.iloc[5]
df.head(6)
df.iloc[423:425]


# Select Cell
df.head()
df.iloc[1,3]
df.iloc[500:600,3]


For full course on Data Science with python pandas at just 9.99$ check

https://www.udemy.com/data-science-wi...


Смотрите видео Data analysis with python and Pandas - Select rows and column Tutorial 9 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь MyStudy 09 Август 2016, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 78,983 раз и оно понравилось 740 людям.