You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Rossini Castro (Jira)" <ji...@apache.org> on 2022/08/12 21:15:00 UTC
[jira] [Updated] (SPARK-40063) pyspark.pandas .apply() changing rows ordering
[ https://issues.apache.org/jira/browse/SPARK-40063?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcelo Rossini Castro updated SPARK-40063:
-------------------------------------------
Summary: pyspark.pandas .apply() changing rows ordering (was: pyspark.pandas .apply() chaging rows ordering)
> pyspark.pandas .apply() changing rows ordering
> ----------------------------------------------
>
> Key: SPARK-40063
> URL: https://issues.apache.org/jira/browse/SPARK-40063
> Project: Spark
> Issue Type: Bug
> Components: Pandas API on Spark
> Affects Versions: 3.3.0
> Reporter: Marcelo Rossini Castro
> Priority: Minor
>
> When using the apply function to apply a function to a DataFrame column, it ends up mixing the column's rows ordering.
> A command like this:
> {code:java}
> def example_func(df_col):
> return df_col ** 2
> df['row_to_apply_function'] = df.apply(lambda row: example_func(row['row_to_apply_function']), axis=1){code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org