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

Update README.md #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ plot(load("data.csv"), x=:a, y=:b, Geom.line)

One can load both local files and files that can be downloaded via either http or https. To download
from a remote URL, simply pass a URL to the ``load`` function instead of just a filename. In addition
one can also load data from an ``IO`` object, i.e. any stream. The syntax
one can also load data from an ``IO`` object, i.e. any stream. The syntax for
that scenario is

````julia
df = DataFrame(load(Stream(format"CSV", io)))
using FileIO
df = DataFrame(load(File(format"CSV", io)))
````

The ``load`` function also takes a number of parameters:
Expand Down Expand Up @@ -89,9 +90,9 @@ This will work as long as ``it`` is any of the types supported as sources in [It

One can also save into an arbitrary stream:
````julia
using CSVFiles
using CSVFiles, FileIO

save(Stream(format"CSV", io), it)
save(File(format"CSV", io), it)
````

The ``save`` function takes a number of arguments:
Expand Down