Skip to content

Project for Udacity Nanodegree - Analysing data from a PostgreSQL database using python.

Notifications You must be signed in to change notification settings

sgpl/log_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Project Name: Log Analysis

How to run the program:

Please download the "log_analysis.py" file 
in the same folder as your database. 

The program assumes that you have a database called
"news" in the folder where you're downloading 
"log_analysis.py". 

This program also assumes that you have postgreSQL 
installed on your machine and have a basic 
understanding of running python programs using 
the terminal.

Step 1. Using terminal navigate to the directory where you've downloaded the program "log_analysis.py".

Step 2. Run the program using the following command:

python log_analysis.py

Step 3: The results should be displayed for you to view in your terminal window momentarily.

Program's design (description):

The program uses python to access a PostgreSQL database that's stored locally in the same folder as the program.

Using functions, it opens a connection to the database, runs a query to answer questions (the parameters of which are specified in the project submission guidelines) leveraging the data stored in the database. And then closes the connection to the database.

Finally all the defined functions are called so that the program can output the results when it is run!

Statements to create views:

No views were created for this project.

About

Project for Udacity Nanodegree - Analysing data from a PostgreSQL database using python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages