-1
$\begingroup$

I am currently working on the data set from this link. But I am unable to read these files from Pandas? Has anyone tried to play with such files?

I am trying the following:

import pandas as pd

df = pd.read_csv("m_4549381c276b46c6.0000")

But I get the following error

Error tokenizing data. C error: Buffer overflow caught - possible malformed input file.
$\endgroup$
  • $\begingroup$ Why do you think this is a CSV file? $\endgroup$ – Anony-Mousse Sep 26 '16 at 5:41
1
$\begingroup$

It's an SFrame, not a CSV; you need GraphLab, not pandas. They show you how to load it in the attendant notebook:

graphlab.SFrame(path)

$\endgroup$
0
$\begingroup$

I don't know this particular dataset, but try adding encoding='utf-8' to the read_csv call. df = pd.read_csv("m_4549381c276b46c6.0000",encoding='utf-8')

$\endgroup$
0
$\begingroup$

This is most likely a database file. You cannot directly open it in pandas. You can use a software in order to convert it first to a csv or something that can be opened in pandas. One such application is here http://dbfconv.com/

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.