VerticaPy
Welcome¶
Welcome to our lessons on VerticaPy. My name is Badr Ouali and I'll be guiding you through the data science life cycle and introducing you to the VerticaPy library.
During these lessons, we'll also work key aspects of the data science life cycle and how it relates to VerticaPy. Each lesson is completable in about 10 minutes.
Setting Up the environment¶
To begin, you must:
- Have access to a machine that has Vertica installed
- Install Python on your machine
- Install VerticaPy
Each step is covered in our installation page.
First Steps¶
Throughout these tutorials, we will use the following VerticaPy version.
vp.__version__
To get started, you must connect to a Vertica database.
If you have previously created a connection, use the connect function to reconnect.
vp.connect("Vertica_New_Connection")
To connect to a Vertica database for the first time, you can use the new_connection function.
import verticapy as vp
vp.new_connection({"host": "10.211.55.14",
"port": "5433",
"database": "testdb",
"password": "XxX",
"user": "dbadmin"},
name = "Vertica_New_Connection")
The arguments for some parameters require specific formatting. To view these requirements, you can use the help module.
help(vp.new_connection)
You can also use the help_start function.
vp.help_start()
And with that, you're ready to start using VerticaPy!
