Skip to main content

Undo/Redo functionality for Pandas DataFrames using Apache Arrow

Project description

Pandoras 🐼🎭

Undo/Redo functionality for Pandas DataFrames using Apache Arrow.

Pandoras extends pandas.DataFrame to add undo/redo capabilities, allowing you to revert accidental modifications easily.

🚀 Installation

You can install pandoras via pip:

pip install pandoras

📌 Features

Undo and redo modifications (drop, rename, replace, etc.)
Leverages Apache Arrow for efficient state storage
Supports Pandas' native operations


💡 Example Usage

import pandoras as pd  # Now PandorasDataFrame replaces pd.DataFrame

# Create a DataFrame
df = pd.DataFrame({"A": [1, 2, 3], "B": [4, None, 6]})

# Drop a column
df.drop(columns=["B"], inplace=True)
print("After drop:\n", df)

# Undo the drop
df.undo()
print("After undo:\n", df)

# Redo the drop
df.redo()
print("After redo:\n", df)

🔮 Future Improvements

🚀 Diff-based state tracking instead of storing full DataFrame copies
🚀 Optimize memory usage using compression


🌜 License

Pandoras is open-source and licensed under the MIT License. Contributions are welcome!

🤝 Contributing

  1. Fork the repo on GitHub
  2. Clone it locally
  3. Create a new feature branch
  4. Submit a pull request

🌍 Connect

📌 GitHub Repo: [GitHub Link Here]
📌 PyPI Package: (Coming Soon)
📌 Author: [Your Name]


🐼 Pandoras – Making Pandas Undoable! 🎭

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pandoras-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pandoras-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file pandoras-0.1.0.tar.gz.

File metadata

  • Download URL: pandoras-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/23.6.0

File hashes

Hashes for pandoras-0.1.0.tar.gz
Algorithm Hash digest
SHA256 50ba141c8d71a132b33da760e1f1ca66ce3acb044caf82b81d9a614ce4f7f3bf
MD5 e1b2eabe67d96d98547c5c9f1a8cfb4f
BLAKE2b-256 727e28e16578f3f87df3c20ef5964edeae16e55da72d8054fa8cdf5f58f7f02f

See more details on using hashes here.

File details

Details for the file pandoras-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pandoras-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/23.6.0

File hashes

Hashes for pandoras-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c73283852b17d6de4681e0256118251cce947c9ac37170fafea4170c5a859ff7
MD5 b37250b5a7c982f1d972a2c2d5655537
BLAKE2b-256 1b32e63bc544eb510082dcde81c52fb612c64de62c711a4e84162a4a923ed37d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page