Make specific pandas dataframe column immuteable / not changeable #58772
Labels
Closing Candidate
May be closeable, needs more eyeballs
Enhancement
Needs Discussion
Requires discussion from core team before further action
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
I would be really helpful if specific columns cannot be altered.
Feature Description
I have a lib that returns a pd.dataframe but only a few columns are allowed to be altered. Just dropping the not allowed columns does not solve the problem, because they are needed at a later point.
Alternative Solutions
e.g.
df = pd.Dataframe(...)
df.make_column_immutable("column_name")
Additional Context
No response
The text was updated successfully, but these errors were encountered: