Skip to content

BUG: ArrayManager changes Series.to_frame() from view to copy #42512

@jbrockmendel

Description

@jbrockmendel
ser = pd.Series(range(5)) df = ser.to_frame() ser._mgr.arrays[0][0] = 10 >>> df.iloc[0, 0] 0 # <-- ArrayManager 10 # <-- BlockManager 

cc @jorisvandenbossche

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions