File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2956,7 +2956,7 @@ def to_sql(
2956
2956
)
2957
2957
def to_pickle (
2958
2958
self ,
2959
- path ,
2959
+ path : FilePath | WriteBuffer [ bytes ] ,
2960
2960
compression : CompressionOptions = "infer" ,
2961
2961
protocol : int = pickle .HIGHEST_PROTOCOL ,
2962
2962
storage_options : StorageOptions = None ,
@@ -2966,8 +2966,10 @@ def to_pickle(
2966
2966
2967
2967
Parameters
2968
2968
----------
2969
- path : str
2970
- File path where the pickled object will be stored.
2969
+ path : str, path object, or file-like object
2970
+ String, path object (implementing ``os.PathLike[str]``), or file-like
2971
+ object implementing a binary ``write()`` function. File path where
2972
+ the pickled object will be stored.
2971
2973
{compression_options}
2972
2974
protocol : int
2973
2975
Int which indicates which protocol should be used by the pickler,
You can’t perform that action at this time.
0 commit comments