question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

to_pickle() got an unexpected keyword argument 'protocol'

See original GitHub issue

Code Sample, a copy-pastable example if possible

df.to_pickle(path=filename", compression='infer', protocol=2)

Problem description

to_pickle() got an unexpected keyword argument 'protocol'
```

#### Expected Output

None.

#### Output of ``pd.show_versions()``

<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-43-Microsoft
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8

pandas: 0.20.2
pytest: None
pip: 9.0.1
setuptools: 27.2.0
Cython: 0.25.2
numpy: 1.13.1
scipy: 0.19.1
xarray: None
IPython: None
sphinx: None
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.2
feather: 0.4.0
matplotlib: 2.0.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: 2.7.1 (dt dec pq3 ext lo64)
jinja2: None
s3fs: None
pandas_gbq: None
pandas_datareader: None
</details>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
manangupta12commented, Aug 6, 2019

OK, found where’s problem. It definitely doesn’t exist if installed via git (0.20.3), so probably conda’s whl is broken.

I am facing the same issue , can you please elaborate the solution to this. It will be a great help !

0reactions
jrebackcommented, Jul 11, 2017

whl don’t exist for conda - that is a pip installation

closing as an installation issue u less it’s repo on a new environment

Read more comments on GitHub >

github_iconTop Results From Across the Web

pandas.read_pickle — pandas 1.5.2 documentation
Loading pickled data received from untrusted sources can be unsafe. See here. Parameters. filepath_or_bufferstr, path object, or file-like object.
Read more >
numba/numba - Gitter
... "TypeError: compile_kernel() got an unexpected keyword argument 'cache'". ... Yes, we do not have support for disk caching or AOT (they internally...
Read more >
Trying to nest a custom object proxy in a dict proxy
I'm stumped. I need to have the objects that are in a manager.dict() to be updated, and I can't simply replace the object...
Read more >
Changes to the Snowpark Python API
Added keyword argument block to the following action APIs on Snowpark dataframes (which execute queries) to allow asynchronous evaluations: DataFrame.collect() ...
Read more >
DataFrame.read_pickle() method in Pandas - GeeksforGeeks
The read_pickle() method is used to pickle (serialize) the given object into the file. This method uses the ... Arguments, Type, Description ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found