Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- numeros_primos = [2, 3, 5, 7, 11]
- # Creación de objeto Series:
- pd_series = pd.Series(numeros_primos)
- # Inspección del tipo de dato de los elementos:
- print(pd_series.dtype)
- print()
- # Operaciones aritméticas sobre un objeto Series:
- print(3 * pd_series)
- print ()
- # Acceso y modificación de elementos:
- print(pd_series[3])
- pd_series[2] = 13
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement