Skip to content

Undo/Redo functionality for Pandas DataFrames using Apache Arrow.

License

Notifications You must be signed in to change notification settings

al2m4n/pandoras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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: https://github.com/al2m4n/pandoras/
๐Ÿ“Œ PyPI Package: https://pypi.org/project/pandoras/
๐Ÿ“Œ Author: Arman Bahlakeh


๐Ÿผ Pandoras โ€“ Making Pandas Undoable! ๐ŸŽญ

About

Undo/Redo functionality for Pandas DataFrames using Apache Arrow.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages