December 2018
Intermediate to advanced
318 pages
8h 28m
English
Let's begin with the basics. We'll import our dataset and get a sense of the quantity of data that we are working with. We will do this by using pandas to import our data:
# pandas is a powerful Python-based data package that can handle large quantities of row/column data# we will use pandas many times during these videos. a 2D group of data in pandas is called a 'DataFrame'# import pandasimport pandas as pd# use the read_csv method to read in a local file of leaked passwords# here we specify `header=None` so that that there is no header in the file (no titles of columns)# we also specify that if any row gives us an error, skip over it (this is done in error_bad_lines=False)data = pd.read_csv('../data/passwords.txt', ...Read now
Unlock full access