Getting started with pandas | Even More Python for Beginners - Data Tools [5 of 31]

preview_player
Показать описание
Pandas is probably the most popular library in the data science world. It provides several powerful tools for loading and manipulating data. We'll start by talking through some of the core functionality of the library, and performing the import.

#microsoftdeveloper #evenmorepythonforbeginners #learntocode
Рекомендации по теме
Комментарии
Автор

Had few doubts, please help
1>How do we store filtered dataframe, for example the below code

df[df['Gender'] == "Male"]

2> how do I use value_count() on question 1

3> when i run the code 'nba.dropna(axis= 1).head()'

I am getting output with only index but not the column values

0

1

2

3

4

Note : nba is my dataframe name

4> When I run the below code

pokemon.get(key=['Pikachu', 'Nonsense'], default='This is not a Pokemon')

my output is

Pokemon
Pikachu Electric
Nonsense NaN
Name: Type, dtype: object Instead of 'This is not a Pokemon'

sunayanak