Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task]: Use DataFrame.map instead of DataFrame.applymap #33441

Open
1 of 17 tasks
liferoad opened this issue Dec 23, 2024 · 2 comments
Open
1 of 17 tasks

[Task]: Use DataFrame.map instead of DataFrame.applymap #33441

liferoad opened this issue Dec 23, 2024 · 2 comments

Comments

@liferoad
Copy link
Collaborator

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

  • 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
@karangarg218
Copy link

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)

@liferoad
Copy link
Collaborator Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants