Skip to content

[Uri] lab-map-filter-reduce#11

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

[Uri] lab-map-filter-reduce#11
UriCVV wants to merge 1 commit intoIronhack-data-bcn-oct-2023:mainfrom
UriCVV:main

Conversation

@UriCVV
Copy link
Copy Markdown

@UriCVV UriCVV commented Oct 16, 2023

No description provided.

@bripollc
Copy link
Copy Markdown

Uri,

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. Well done, veo que eres uno de los que tira.

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

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