I had this error when I created a pkl file with python 2.7 and was trying to read it with python 3.6
I did:
pd.read_pickle('foo.pkl')
and it worked
More Related Contents:
- Replacing values represented by 'UN' with NaN
- Convert pandas dataframe to NumPy array
- Strings in a DataFrame, but dtype is object
- Performance of Pandas apply vs np.vectorize to create new column from existing columns
- What does axis in pandas mean?
- FutureWarning: elementwise comparison failed; returning scalar, but in the future will perform elementwise comparison
- pandas select from Dataframe using startswith
- How to map numeric data into categories / bins in Pandas dataframe
- What’s the fastest way in Python to calculate cosine similarity given sparse matrix data?
- Restart cumsum and get index if cumsum more than value
- How can I map True/False to 1/0 in a Pandas DataFrame?
- What does the term “broadcasting” mean in Pandas documentation?
- Dropping infinite values from dataframes in pandas?
- ValueError: numpy.dtype has the wrong size, try recompiling
- Pandas: convert dtype ‘object’ to int
- Pandas lookup from one of multiple columns, based on value
- Most efficient way to sort an array into bins specified by an index array?
- Pandas pd.Series.isin performance with set versus array
- Difference between data type ‘datetime64[ns]’ and ‘
- python pandas flatten a dataframe to a list
- Get week start date (Monday) from a date column in Python (pandas)?
- Find symmetric pairs quickly in numpy
- What is dtype(‘O’), in pandas?
- Pass percentiles to pandas agg function
- NumPy version of “Exponential weighted moving average”, equivalent to pandas.ewm().mean()
- Unpivot Pandas Data
- pandas.read_csv from string or package data
- Get first and second highest values in pandas columns
- How to use sklearn fit_transform with pandas and return dataframe instead of numpy array?
- mean from pandas and numpy differ