The third of the three Python programs shows how to use SQLite to create a relationship between two tables and then calculate a result using SciPy.
- [Narrator] Next, there are two pieces of data…that must be imported into the database.…These are identifier tables that describe data…in the vehicles and accidents tables.…This information is unusual because…it's an Excel file, not a CSV file.…It needs to be imported to the SQL lite…database using a different process.…This data is in the road accident safety guide XLS file…and if we open that, we'll see that there are several tabs.…The two tabs we are most interested in…is accident severity and vehicle type.…
I'm going to use Python's ability to manipulate…Excel files to complete this task.…Let's take a look at that code.…I've already opened the Python Idle Editor…and am now going to open up the script itself.…So I'll go to file, open, I'll navigate to the…exercise files, chapter three,…and we're going to open up the third import Python script.…Python requires a special library to open up Excel files.…
And, that library may not be installed in your system.…So, let's step through installing the xlrd library.…
- Strengths and weaknesses of SQLite
- Creating a database
- Joining data sets
- Calculations with SQLite and Python
- Searching a database
- Subqueries and queries in SQLite
- CRUD operations in SQLite with R
Skill Level Intermediate
1. SQLite in Five Minutes
2. Create a Database
3. Join Two Datasets
4. Search a Database
5. Create, Read, Update, and Delete Operations
6. Averages and Calculations
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.