You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/04 10:20:58 UTC

[GitHub] [arrow] zacqed opened a new issue, #13505: [Python] iloc equivalent for selection by position and setting values?

zacqed opened a new issue, #13505:
URL: https://github.com/apache/arrow/issues/13505

   iloc equivalent for selection by position and setting values?
   ```
   import pyarrow as pa
   import pandas as pd
   df = pd.DataFrame({'year': [2020, 2022, 2019, 2021],
                      'n_legs': [2, 4, 5, 100],
                      'animals': ["Flamingo", "Horse", "Brittle stars", None]})
   table = pa.Table.from_pandas(df)
   
   ```
   `df.loc[df["animals"].isnull(), "animals"] = "new_value" # how do we perform this in pyarrow?`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] zacqed closed issue #13505: [Python] iloc equivalent for selection by position and setting values?

Posted by GitBox <gi...@apache.org>.
zacqed closed issue #13505: [Python] iloc equivalent for selection by position and setting values?
URL: https://github.com/apache/arrow/issues/13505


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] rok commented on issue #13505: [Python] iloc equivalent for selection by position and setting values?

Posted by GitBox <gi...@apache.org>.
rok commented on issue #13505:
URL: https://github.com/apache/arrow/issues/13505#issuecomment-1173753963

   There is a [discussion](https://lists.apache.org/thread/c1von4oj8g0tb93mggov2sv04x56o80r) going on the mailing list.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org