Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
The Data Wrangling Workshop

You're reading from   The Data Wrangling Workshop Create your own actionable insights using data from multiple raw sources

Arrow left icon
Product type Paperback
Published in Jul 2020
Publisher Packt
ISBN-13 9781839215001
Length 576 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Authors (10):
Arrow left icon
Brian Lipp Brian Lipp
Author Profile Icon Brian Lipp
Brian Lipp
Shubhadeep Roychowdhury Shubhadeep Roychowdhury
Author Profile Icon Shubhadeep Roychowdhury
Shubhadeep Roychowdhury
Dr. Tirthajyoti Sarkar Dr. Tirthajyoti Sarkar
Author Profile Icon Dr. Tirthajyoti Sarkar
Dr. Tirthajyoti Sarkar
John Wesley Doyle John Wesley Doyle
Author Profile Icon John Wesley Doyle
John Wesley Doyle
Harshil Jain Harshil Jain
Author Profile Icon Harshil Jain
Harshil Jain
Robert Thas John Robert Thas John
Author Profile Icon Robert Thas John
Robert Thas John
Akshay Khare Akshay Khare
Author Profile Icon Akshay Khare
Akshay Khare
Nagendra Nagaraj Nagendra Nagaraj
Author Profile Icon Nagendra Nagaraj
Nagendra Nagaraj
Samik Sen Samik Sen
Author Profile Icon Samik Sen
Samik Sen
Dr. Vlad Sebastian Ionescu Dr. Vlad Sebastian Ionescu
Author Profile Icon Dr. Vlad Sebastian Ionescu
Dr. Vlad Sebastian Ionescu
+6 more Show less
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface
1. Introduction to Data Wrangling with Python 2. Advanced Operations on Built-In Data Structures FREE CHAPTER 3. Introduction to NumPy, Pandas, and Matplotlib 4. A Deep Dive into Data Wrangling with Python 5. Getting Comfortable with Different Kinds of Data Sources 6. Learning the Hidden Secrets of Data Wrangling 7. Advanced Web Scraping and Data Gathering 8. RDBMS and SQL 9. Applications in Business Use Cases and Conclusion of the Course Appendix

1. Introduction to Data Wrangling with Python

Activity 1.01: Handling Lists

Solution:

These are the steps to complete this activity:

  1. Import the random library:
    import random
  2. Use the randint method from the random library to create 100 random numbers:
    random_number_list = [random.randint(0, 100) \
                          for x in range(0, 100)]
  3. Print random_number_list:
    random_number_list

    The sample output is as follows:

    Figure 1.20: Section of output for random_number_list

    Note

    The output is susceptible to change since we are generating random numbers.

  4. Create a list_with_divisible_by_3 list from random_number_list, which will contain only numbers that are divisible by 3:
    list_with_divisible_by_3 = [a for a in \
                            ...
lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
The Data Wrangling Workshop
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime
Modal Close icon
Modal Close icon