mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-12 21:01:48 +08:00
Pandas
This commit is contained in:
parent
bbc8e1438b
commit
cdb67d9754
@ -1205,20 +1205,16 @@ print('Mean: ',mean) #it is good to add some description to the output, so we kn
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh
|
||||
Mean: 32.5
|
||||
```
|
||||
|
||||
|
||||
### Boolean Indexing
|
||||
|
||||
|
||||
```python
|
||||
print(df[df['Ages'] > 120])
|
||||
```
|
||||
|
||||
|
||||
<table border="1" class="dataframe">
|
||||
<thead>
|
||||
<tr style="text-align: right;">
|
||||
@ -1255,8 +1251,6 @@ print(df[df['Ages'] > 120])
|
||||
print(df[df['Ages'] < 120])
|
||||
```
|
||||
|
||||
|
||||
|
||||
<table border="1" class="dataframe">
|
||||
<thead>
|
||||
<tr style="text-align: right;">
|
||||
@ -1300,7 +1294,6 @@ print(df[df['Ages'] < 120])
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
## Exercises: Day 25
|
||||
1. Read the hacker_ness.csv file from data directory
|
||||
1. Get the first five rows
|
||||
|
||||
Loading…
Reference in New Issue
Block a user