mirror of https://github.com/01-edu/Branch-AI.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
571 B
17 lines
571 B
2 years ago
|
# Exercice 1
|
||
|
|
||
|
The goal of this exercise is to learn to create basic Pandas objects.
|
||
|
|
||
|
1. Create a DataFrame as below this using two ways:
|
||
|
- From a NumPy array
|
||
|
- From a Pandas Series
|
||
|
|
||
|
| | color | list | number |
|
||
|
|---:|:--------|:--------|---------:|
|
||
|
| 1 | Blue | [1, 2] | 1.1 |
|
||
|
| 3 | Red | [3, 4] | 2.2 |
|
||
|
| 5 | Pink | [5, 6] | 3.3 |
|
||
|
| 7 | Grey | [7, 8] | 4.4 |
|
||
|
| 9 | Black | [9, 10] | 5.5 |
|
||
|
|
||
|
2. Print the types for every columns and the types of the first value of every columns
|