When reading a file of size 4 MB with pandas.read_pickle(), EOFError: Ran out of input is thrown. This file has been written with pandas.to_pickle() but due to a software bug, the thread running pandas.to_pickle() might have been killed. Is there a way to retrieve some data from this file?
How to retrieve data from a corrupt pandas_pickle_file.pkl when pandas.read_pickle() throws "EOFError: Ran out of input"?
134 Views Asked by mpa At
1
There are 1 best solutions below
Related Questions in PANDAS
- ModuleNotFoundError on .ipynb
- Str object is not callable in pandas
- Need help realigning python fill_between with data points
- AttributeError: module 'numba' has no attribute 'generated_jit'
- Fix error when assigning a list of values to dataframe row
- How to make pandas show large datasets in output?
- merge dataframe but do not sort by merge key
- vim python omnifunc not working some modules
- Preserving DataFrame Modifications Across Options in a Streamlit Application
- How to join 2 datasets by looking up based on a string (full match or part match)
- Python Pandas getting hierarchy path till top management
- How to convert pandas series to integer for use in datetime.fromisocalendar
- reformat numbers stored in array
- How can I resolve this error and work smoothly in deep learning?
- What is the best way to merge two dataframes that one of them has date ranges and the other one has date WITHOUT any shared columns?
Related Questions in FILE
- Helpt with reading files
- Why can't I use the file pointer after the first read attempt fails?
- Can't read the file using std::wifstream C++
- How can the scanner reread the entire file after it has already executed hasNextLine once?
- What is 'Invalid Load Key, '\x00'
- php $_FILE variable undefined index
- Data loaded from the file is not returned in the correct order
- File splitting and encryption
- Optimizing an s5cmd command that uses awk to generate a text file
- segmentation fault while reading in text file ( c++ )
- File.OpenText is adding C:\ to the front which is an error
- UTF-8 issue with excel
- How to upload files to MediaWiki APIs in Rust?
- No such file or directory: '/tmp/tmp_ejr26m6.upload.mp3' in Django
- Problems accessing zip files on the react front end from express backend
Related Questions in PICKLE
- What is 'Invalid Load Key, '\x00'
- How to resolve these Unpickling Errors?
- 1 filenames = [] 2 ----> 3 for file in os.zipfile('images.zip'):
- How to remove the JSON Loads Error at Server Side?
- TypeError: 'str' object cannot be interpreted as an integer when using pickle
- Cookies doesn't work in sub services pages
- AttributeError: Can't pickle local object 'Layer._initializer_tracker.<locals>.<lambda>'
- Can't load pickle with custom preprocessing classes
- Fast open pickle in Python3
- Python2 unable to pickle string
- Why is my python socket connection not receiving all of the data, sometimes...?
- PyTorch and Pickle Error: AttributeError: Can't get attribute "Class_name" on <module '__main__' from '/load_model.py'>
- I am unable to load a keras model using the pickle.load method
- How do I stop celery from converting my custom classes into dictionaries?
- is it possible to pickle mplcursors object annotation to save and display later?
Related Questions in CORRUPT
- Build/running a minimal Docker container Ubuntu:22.04 but recieving following invalid ELF header error
- Corrupt Synapse Notebook
- .xlsx file created in Excel for Widows then edited in Excel for Mac is no longer an archive file and cannot be opened by OpenXML SDK
- When using a memory stream to save, the C1XLWorkbook creates a file, but the file comes out corrupt. Why is that happening?
- Resolve error "Class not registered WSL/0x80040154" without data loss?
- How to retrieve data from a corrupt pandas_pickle_file.pkl when pandas.read_pickle() throws "EOFError: Ran out of input"?
- FDCAN peripheral sends only partial CAN frame with no data
- How can I solve run-time check failure error?
- After saving a project in Turbowarp, I tried to load it and got a message saying "could not load project"
- Python creates corrupt files of excel when I run my code. How can I save the files without corrupting the file?
- downloaded xlsx file corrupt useing IIS and c# httpwebrequest
- corrupted Excel file from pandas dataframe
- PHP IMAP mail decode subject - mb_decode_mimeheader - destroy EUR symbol
- VBA macros disappeared in Outlook
- APK File not usable after download
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I found a hint in this Stackoverflow question. The code below is an example how I recovered all relevant data for our case. The structure of the code and the amount of recoverable data obviously depends on the corrupted file. Good luck :-)