liferoad commented on issue #33020:
URL: https://github.com/apache/beam/issues/33020#issuecomment-2480881029

    For numpy,
   
   ```
   import numpy as np
   import pickle
   
   # Create a NumPy array
   arr = np.array([[1, 2], [3, 4]])
   
   # Pickle the array
   serialized_arr = pickle.dumps(arr)
   
   # Unpickle the array (implicitly calls __setstate__)
   restored_arr = pickle.loads(serialized_arr)
   
   print(restored_arr)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to