Skip to content

[Pandas] appending dataframes has been removed.  #24

@Jmegan042

Description

@Jmegan042
, line 385, in add_spin_systems_to_master
    output = master.append(data, ignore_index=True, sort=False).\
             ^^^^^^^^^^^^^
  File "/opt/anaconda3/lib/python3.11/site-packages/pandas/core/generic.py", line 6299, in __getattr__
    return object.__getattribute__(self, name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'DataFrame' object has no attribute 'append'

This is a pandas error seen during spin system construction and the adding of spin systems to master. This change was made in Pandas 2.0 and in most cases is not seen during use unless the environment has some hiccup.

Further investigation as to why this happens may be warranted - but simply updating to pandas 2.0 is also an option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions