apache / beam

Apache Beam is a unified programming model for Batch and Streaming data processing.
https://beam.apache.org/
Apache License 2.0
7.9k stars 4.27k forks source link

set_index should accept Series and Index instances #20759

Open damccorm opened 2 years ago

damccorm commented 2 years ago

Currently our implementation of set_index only supports columns labels, but the actual implementation also allows passing Index or Series instances.

df.set_index([df.index, df.foo, df['baz']])

Imported from Jira BEAM-11711. Original Jira may contain additional context. Reported by: bhulette.

HaoXuAI commented 1 year ago

@damccorm I'm trying to add the functionality here: https://github.com/apache/beam/pull/26157