Is this and other tutorials marked as "Under construction" ready to be started?
Is this and other tutorials marked as "Under construction" ready to be started?
I figured out that Pandas read_pickle works:
f = gzip.open('mnist_10000.pkl.gz', 'rb')
trainData, trainLabels, valData, valLabels, testData, testLabels = pd.read_pickle(f)
f.close()
I am on Python 3.6.5 where I am not able to install cPickle (at least a quick web search seemed to suggest that cPickle is not available for Python3.x).
Please suggest an option to move forward on this assignment.
Thanks. I worked around in same way and moved ahead. I hope this can get fixed though at the source.
data = pd.read_csv('UKretail.csv') I get the following Error:
---------------------------------------------------------------------------
UnicodeDecodeError Traceback (most recent call last)
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens (pandas/_libs/parsers.c:14858)()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_with_dtype (pandas/_libs/parsers.c:17119)()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._string_convert (pandas/_libs/parsers.c:17347)()
pandas/_libs/parsers.pyx in pandas._libs.parsers._string_box_utf8 (pandas/_libs/parsers.c:23041)()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 28: invalid start byte
During handling of the above exception, another exception occurred:
UnicodeDecodeError Traceback (most recent call last)
<ipython-input-44-5aec85f094f2> in <module>()
1 # Import data onto a DataFrame from Excel or CSV document
2
----> 3 data = pd.read_csv('UKretail.csv')