Advertisement
cardel

Ejemplo

Jun 15th, 2022
1,231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. """
  2. Carlos A Delgado
  3. 15 de junio de 2022
  4. Ejemplo de seleccion con pandas
  5. """
  6. import pandas as pd
  7. import numpy as np
  8.  
  9. s = pd.Series([10, 20, 30, 40], index = ["a", "b", "c", "s"])
  10. print(s.sample(2))
  11. print(s.sample(2))
  12. print(s.sample(frac=0.8))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement