Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
colshould 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