You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "liferoad (via GitHub)" <gi...@apache.org> on 2024/12/23 15:51:47 UTC

[I] [Task]: Use DataFrame.map instead of DataFrame.applymap [beam]

liferoad opened a new issue, #33441:
URL: https://github.com/apache/beam/issues/33441

   ### What needs to happen?
   
   Fix this warning:
   ```
   /jupyter/.kernels/apache-beam-2.61.0/lib/python3.10/site-packages/apache_beam/runners/interactive/display/pcoll_visualization.py:423: FutureWarning: DataFrame.applymap has been deprecated. Use DataFrame.map instead.
     rows = data.applymap(lambda x: str(x)).to_dict('split')['data']
   ```
   
   ### Issue Priority
   
   Priority: 2 (default / most normal work should be filed as P2)
   
   ### Issue Components
   
   - [X] Component: Python SDK
   - [ ] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [ ] Component: IO connector
   - [ ] Component: Beam YAML
   - [ ] Component: Beam examples
   - [ ] Component: Beam playground
   - [ ] Component: Beam katas
   - [ ] Component: Website
   - [ ] Component: Infrastructure
   - [ ] Component: Spark Runner
   - [ ] Component: Flink Runner
   - [ ] Component: Samza Runner
   - [ ] Component: Twister2 Runner
   - [ ] Component: Hazelcast Jet Runner
   - [ ] Component: Google Cloud Dataflow Runner


-- 
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@beam.apache.org.apache.org

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


Re: [I] [Task]: Use DataFrame.map instead of DataFrame.applymap [beam]

Posted by "mohamedawnallah (via GitHub)" <gi...@apache.org>.
mohamedawnallah commented on issue #33441:
URL: https://github.com/apache/beam/issues/33441#issuecomment-2591269595

   .take-issue


-- 
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@beam.apache.org

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


Re: [I] [Task]: Use DataFrame.map instead of DataFrame.applymap [beam]

Posted by "mohamedawnallah (via GitHub)" <gi...@apache.org>.
mohamedawnallah commented on issue #33441:
URL: https://github.com/apache/beam/issues/33441#issuecomment-2593155243

   Hi @liferoad, It seems I used `addresses` instead of `fixes` in the current merged PR, so this issue won't be closed automatically.


-- 
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@beam.apache.org

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


Re: [I] [Task]: Use DataFrame.map instead of DataFrame.applymap [beam]

Posted by "mohamedawnallah (via GitHub)" <gi...@apache.org>.
mohamedawnallah commented on issue #33441:
URL: https://github.com/apache/beam/issues/33441#issuecomment-2590883983

   Hi @karangarg218, are you currently working on this issue? I’d like to take it on otherwise. šŸ™
   
   cc: @liferoad


-- 
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@beam.apache.org

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


Re: [I] [Task]: Use DataFrame.map instead of DataFrame.applymap [beam]

Posted by "karangarg218 (via GitHub)" <gi...@apache.org>.
karangarg218 commented on issue #33441:
URL: https://github.com/apache/beam/issues/33441#issuecomment-2561886311

   Hi Can you assign this task to me. I have checked that this is in python sdk this is the file  with warnings.catch_warnings():
         # TODO(yathu) switch to use DataFrame.map when dropped pandas<2.1 support
         warnings.filterwarnings(
             "ignore", message="DataFrame.applymap has been deprecated")
         data = data.applymap(lambda x: str(x) if isinstance(x, dict) else x) 


-- 
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@beam.apache.org

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


Re: [I] [Task]: Use DataFrame.map instead of DataFrame.applymap [beam]

Posted by "liferoad (via GitHub)" <gi...@apache.org>.
liferoad commented on issue #33441:
URL: https://github.com/apache/beam/issues/33441#issuecomment-2561914274

   Thanks!


-- 
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@beam.apache.org

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


Re: [I] [Task]: Use DataFrame.map instead of DataFrame.applymap [beam]

Posted by "liferoad (via GitHub)" <gi...@apache.org>.
liferoad closed issue #33441: [Task]: Use DataFrame.map instead of DataFrame.applymap 
URL: https://github.com/apache/beam/issues/33441


-- 
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@beam.apache.org

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