Skip to main content
Ctrl+K

Polpo @ GI lab

  • How-tos
  • Tutorials
  • API
  • How-tos
  • Tutorials
  • API

Section Navigation

  • polpo.preprocessing
    • BranchingPipeline
    • Constant
    • Contains
    • ContainsAll
    • DataPrinter
    • DecorateToIterable
    • EmptyRemover
    • EmptySkipper
    • Eval
    • EvalFromImport
    • ExceptionToWarning
    • Filter
    • IdentityStep
    • IfCondition
    • IfEmpty
    • IndexMap
    • IndexSelector
    • Lambda
    • ListSqueeze
    • Listify
    • Map
    • MethodApplier
    • NestingSwapper
    • NoneRemover
    • NoneSkipper
    • ParMap
    • PartiallyInitializedStep
    • Pipeline
    • Prefix
    • PreprocessingStep
    • RemoveIndex
    • SerialMap
    • Sorter
    • StepWithLogging
    • StepWrappingPreprocessingStep
    • Truncater
    • TupleWith
    • TupleWithIncoming
    • Unnest
    • WrapInList
    • polpo.preprocessing.base
    • polpo.preprocessing.dict
    • polpo.preprocessing.learning
    • polpo.preprocessing.load
    • polpo.preprocessing.mesh
    • polpo.preprocessing.mri
    • polpo.preprocessing.np
    • polpo.preprocessing.path
    • polpo.preprocessing.pd
    • polpo.preprocessing.point_cloud
    • polpo.preprocessing.ssh
    • polpo.preprocessing.str
  • API
  • polpo.preprocessing
  • polpo.preprocessing.pd
  • IndexSetter

IndexSetter#

class polpo.preprocessing.pd.IndexSetter(key, inplace=True, drop=False, verify_integrity=True)[source]#

Bases: PreprocessingStep

Set the DataFrame index using existing columns.

Check out https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.set_index.html.

Parameters:
  • key (str) – New index.

  • inplace (bool) – Whether to perform operation in place.

  • drop (bool) – Delete columns to be used as the new index.

  • verify_integrity (bool) – Check the new index for duplicates.

On this page
  • IndexSetter

© Copyright 2024-, Geometric Intelligence Lab @ UC Santa Barbara.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.