Skip to content

Commit

Permalink
ReadMe update for Uploading data
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisStevens committed Apr 2, 2013
1 parent ef917c1 commit b9673ab
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,35 @@ returns:
2012-09-30 210.212855
2012-06-30 179.322638


##Uploads
You can now upload your own data to Quandl through the Python package.

At this time the only accepted format is a date indexed Pandas DataSeries.

Things to do before you upload:

* Make an account and set your authentication token within the package with the Quandl.auth() function.
* Get your data into a data frame with the dates in the first column.
* Pick a code for your dataset - only capital letters, numbers and underscores are acceptable.

Then call this function
`Quandl.push(data,code = "TEST", name ="Test", desc="test")`
All parameters but desc are necessary

if you wish to override the existing set at code TEST add `override= True`



Example
========
Uploading a pandas DataSeries with random data

data = pandas.DataFrame(numpy.random.randn(6, 3), index=['Dec 12 2296', 'Dec 21 1998', 'Oct 9 2000','Oct 19 2001', 'Oct 30 2003', 'Nov 12 2003'],columns=['D', 'B', 'C'])
print Quandl.push(data,code = "F32C", name ="Test", desc="test", authtoken = "YOURTOKENHERE")

Will return the link to your newly uploaded data

Recommended Usage
================
The IPython notebook is an excellent python environment for interactive data work. Spyder is also a superb IDE for analysis and more numerical work.
Expand Down

0 comments on commit b9673ab

Please sign in to comment.