Code Monkey home page Code Monkey logo

Comments (3)

SamLau95 avatar SamLau95 commented on August 16, 2024

You should just use:

data = Table.read_table('07423-0001-Data.csv')

The reason why it's breaking right now is that the Table isn't able to
access https://data8.berkeley.edu/user/andrej/edit/history-connector/07423-0001-Data.csv
by default. Try opening an incognito window and hitting https://data8.berkeley.edu/user/andrej/edit/history-connector/07423-0001-Data.csv.
Because you have to log in, Table.read_table can't read it properly.

You can either do what I suggest above (which reads the file from the
notebook's directory), or use the public URL of your file on Github:
http://data8.org/history-connector/07423-0001-Data.csv

Which you can use like this:

data = Table.read_table('http://data8.org/history-connector/07423-0001-Data.csv')

from connector-instructors.

AndrejGitHub avatar AndrejGitHub commented on August 16, 2024

Thank you all! The code worked -- a miracle!

data = Table.read_table('07423-0001-Data.csv')
data

Thank you all again, and a cautionary note would make sense,

Andrej

from connector-instructors.

SamLau95 avatar SamLau95 commented on August 16, 2024

My pleasure! Do note that the code above is dependent on where the files
are.

data = Table.read_table('07423-0001-Data.csv')

means: find the file named '07423-0001-Data.csv' in my current directory
and then read it in as a Table. If you move '07423-0001-Data.csv' to a
different folder, that line will break. It won't break if you move both the
notebook and the dataset to a different folder.

As another example, if you have this folder structure:

andrej/
module1/
mynotebook.ipynb
datasets/
07423-0001-Data.csv
module2/
...

Then you'd want the read_table line to look like:

data = Table.read_table('datasets/07423-0001-Data.csv')

On Fri, Jan 22, 2016 at 12:50 AM, AndrejGitHub [email protected]
wrote:

Closed #13 #13.


Reply to this email directly or view it on GitHub
#13 (comment)
.

Sam Lau
EECS | UC Berkeley | May 2017
(562) 565-4336 | [email protected]

from connector-instructors.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.