About 11,100,000 results
Open links in new tab
  1. How can I use pickle to save a dict (or any other Python object)?

    I have looked through the information that the Python documentation for pickle gives, but I'm still a little confused. What would be some sample code that would write a new file and then use …

  2. Loading a Python pickle slows down in a for loop - Stack Overflow

    Dec 3, 2023 · Edit: I've run the above loading and unloading loop for different sized pickles. Results below showing the relative change in speed over time. For anything above 3 GB, the …

  3. python - How to read pickle file? - Stack Overflow

    The following is an example of how you might write and read a pickle file. Note that if you keep appending pickle data to the file, you will need to continue reading from the file until you find …

  4. python - Pickles: Why are they called that? - Stack Overflow

    Pickles: Why are they called that? [closed] Asked 10 years, 11 months ago Modified 10 years, 9 months ago Viewed 9k times

  5. python - How to use append with pickle? - Stack Overflow

    What makes you think that two appended pickle streams will somehow be magically accepted as one new object? If your data is too big to fit into memory, use a database (you have many …

  6. Saving and loading objects and using pickle - Stack Overflow

    Anycache calls myfunc at the first time and pickles the result to a file in cachedir using an unique identifier (depending on the the function name and the arguments) as filename. On any …

  7. How to reversibly store and load a Pandas dataframe to/from disk

    It seems the blog linked above (Efficiently Store Pandas DataFrames has been deleted. I did my own comparisons with .to_pickle() (which uses binary storage) against .to_hdf() (without …

  8. AttributeError: Can't pickle local object in Multiprocessing

    Jun 27, 2022 · With that said, I have never really looked into how dill specifically pickles such functions (but it's probably an acceptable workaround for this situation that sacrifices …

  9. Saving and loading multiple objects in pickle file?

    Dec 21, 2013 · I have a class that serves players in a game, creates them and other things. I need to save these player objects in a file to use it later. I've tried the pickle module but I don't …

  10. Python serialization - Why pickle? - Stack Overflow

    Jan 23, 2012 · Pickling is absolutely necessary for distributed and parallel computing. Say you wanted to do a parallel map-reduce with multiprocessing (or across cluster nodes with pyina), …