Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation on loading data #90

Closed
nickray opened this issue Nov 12, 2012 · 4 comments
Closed

Documentation on loading data #90

nickray opened this issue Nov 12, 2012 · 4 comments

Comments

@nickray
Copy link

nickray commented Nov 12, 2012

I looked at this with the expectation of easily loading data as well as creating and exporting it. Something simple like

fd = open('somefile.csv')
tablib.import_set(fd)

doesn't seem to work. Or is this not an intended use case?

@schmidtphil
Copy link

schmidtphil commented Mar 1, 2013

not intended, it needs a text reprasentation of the file:

fd = open('somefile.csv')
stream = fd.read()
tablib.import_set(stream)

@kennethreitz

This comment has been minimized.

@iurisilvio
Copy link
Collaborator

Yes, these docs should be improved.

The behaviour of import_set is format specific, some accept only filename, others accept stream/text/filename.

I'm reopening this issue to work on it.

@claudep
Copy link
Contributor

claudep commented Jan 27, 2020

If you still find the current documentation lacking, please provide suggestions.

@claudep claudep closed this as completed Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants