Skip to content

Completed the lab#24

Open
patriciazapatab wants to merge 1 commit intoIronhack-data-bcn-oct-2023:mainfrom
patriciazapatab:main
Open

Completed the lab#24
patriciazapatab wants to merge 1 commit intoIronhack-data-bcn-oct-2023:mainfrom
patriciazapatab:main

Conversation

@patriciazapatab
Copy link
Copy Markdown

Here it is!!!!

@bripollc
Copy link
Copy Markdown

Pati,

No tengo mucho a comentar ya que todas las respuestas son correctísimas. 🤓 Felicitats!

  • Let's write a function to split those words. Our function will return the string split on the character \n. Write your function in the cell below.
def line_break(x):
    x_split = x.split("\n")
    x_split = [line for line in x_split if line.strip() != '']
    return x_split

De esta manera eliminarás los espacios en blanco:) (aunque no te lo pide)

Por el Challenge 4 no te preocupes, son cosas que veremos estos días. Pero bien bien bien, me gusta que hayas intentado ya cositas con pandas.

Ps: si al imprimir tus respuestas limitas el rango será más legible el notebook 🙃

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants