Skip to content

lab-map-filter-reduce#19

Open
sarabenitezinglott wants to merge 1 commit intoIronhack-data-bcn-oct-2023:mainfrom
Ironhack-data23:main
Open

lab-map-filter-reduce#19
sarabenitezinglott wants to merge 1 commit intoIronhack-data-bcn-oct-2023:mainfrom
Ironhack-data23:main

Conversation

@sarabenitezinglott
Copy link
Copy Markdown

No description provided.

@bripollc
Copy link
Copy Markdown

Sara,

Te dejo algunas correcciones del lab. Pero buen trabajo! 🤓 Felicitats!

  • Do this by removing from prophet elements 0 through 567 of the list (you can also do this by keeping elements 568 through the last element)
prophet2 = prophet[568:]
print(prophet2)

Tu respuesta está bien pero te dejo una solución mucho más sencilla. No hacia falta aplicar map() function:)

  • The next step is to create a function that will remove references. We will do this by splitting the string on the { character.
def reference(x):
    x = x.split("{")
    return x[0]

También te dejo un opción muuuuuucho más sencilla:)

  • Challenge 3: Reduce
prophet_string = reduce(concat_space, prophet_filter)
print(prophet_string)

La función concat_space está bien estructurada, únicamente te falta aplicar el reduce() function correctamente.

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, 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