Skip to content

Fixed issue on Top 12 German Companies sample #1186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6552,10 +6552,10 @@
"source": [
"// Group data by sector to compute average and standard deviations of ROA and ROE\n",
"val roeAndRoaDf = companiesDf.groupBy { sector }.aggregate {\n",
" ROA.mean() into \"Avg ROA\"\n",
" ROA.std() into \"Std ROA\"\n",
" ROE.mean() into \"Avg ROE\"\n",
" ROE.std() into \"Std ROE\"\n",
" (ROA.map { it.toString().replace(\".\", \"\").toDouble() }).mean() into \"Avg ROA\"\n",
" (ROA.map { it.toString().replace(\".\", \"\").toDouble() }).std() into \"Std ROA\"\n",
" (ROE.map { it.toString().replace(\".\", \"\").toDouble() }).mean() into \"Avg ROE\"\n",
" (ROE.map { it.toString().replace(\".\", \"\").toDouble() }).std() into \"Std ROE\"\n",
"}\n",
"\n",
"roeAndRoaDf"
Expand Down