✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Tienes un DataFrame con el precio de cierre y quieres crear una nueva columna llamada return que calcule el retorno respecto al precio anterior. ¿Cuál es la mejor opción?