Skip to content

Conversation

@Schlomo-khalidi
Copy link

Running the first set of code that has defines the function ("def proportional_allocation_percentage(df, percentage):") runs well without any errors, but upon running the second set of code('percent = 0.05 .....'), an error is thrown (PySparkTypeError: [NOT_COLUMN_OR_STR] Argument col should be a Column or str, got float.). This happens due to errors in the first set of code that defines the function. I reviewed the code and made some adjustments that makes the code run without any errors. My name is Allan Munene, Gracias

Running the first set of code that has defines the function ("def proportional_allocation_percentage(df, percentage):") runs well without any errors, but upon running the second set of code('percent = 0.05 .....'), an error is thrown (PySparkTypeError: [NOT_COLUMN_OR_STR] Argument `col` should be a Column or str, got float.). This happens due to errors in the first set of code that defines the function. I reviewed the code and made some adjustments that makes the code run without any errors. My name is Allan Munene, Gracias
@sinedied
Copy link
Collaborator

sinedied commented Jun 2, 2025

@Jcardif could you review this one?

BTW we'd to either externalize in a separate repo or retire all workshops in the core (this) repo, could you think about that @Jcardif @cmaneu ? Thanks

@Schlomo-khalidi
Copy link
Author

Schlomo-khalidi commented Jun 26, 2025

Did anyone review? @Jcardif @cmaneu

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