From the course: Python Data Science Mistakes to Avoid

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Not sharing data referenced in code

Not sharing data referenced in code - Python Tutorial

From the course: Python Data Science Mistakes to Avoid

Start my 1-month free trial

Not sharing data referenced in code

- [Instructor] If you share your code with a project partner, but you do not share the data you referenced, there is not much they can do. In order for someone else to understand your work and collaborate with you, it is essential that you share all the data that you're working with. To illustrate what happens when you do not share data referenced in code, I'll be walking you through an example. Let's say that I wrote code in a Jupyter notebook in which I work with a dataset containing grades for students across five exams and I shared that code with a teammate, but I do not share the dataset I used. When they run the cell that is supposed to read the dataset, they will get FileNotFoundError like this. And when they run all the cells below that refer to that dataset, those will also produce errors. And it'll be hard for the teammate to make sense of the work in this notebook. However, if I had shared the dataset involved,…

Contents