Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Practical Data Analysis Using Jupyter Notebook

You're reading from   Practical Data Analysis Using Jupyter Notebook Learn how to speak the language of data by extracting useful and actionable insights using Python

Arrow left icon
Product type Paperback
Published in Jun 2020
Publisher Packt
ISBN-13 9781838826031
Length 322 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Marc Wintjen Marc Wintjen
Author Profile Icon Marc Wintjen
Marc Wintjen
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Section 1: Data Analysis Essentials
2. Fundamentals of Data Analysis FREE CHAPTER 3. Overview of Python and Installing Jupyter Notebook 4. Getting Started with NumPy 5. Creating Your First pandas DataFrame 6. Gathering and Loading Data in Python 7. Section 2: Solutions for Data Discovery
8. Visualizing and Working with Time Series Data 9. Exploring, Cleaning, Refining, and Blending Datasets 10. Understanding Joins, Relationships, and Aggregates 11. Plotting, Visualization, and Storytelling 12. Section 3: Working with Unstructured Big Data
13. Exploring Text Data and Unstructured Data 14. Practical Sentiment Analysis 15. Bringing It All Together 16. Works Cited
17. Other Books You May Enjoy

Creating our first DataFrame

Before we begin with some hands-on examples, some useful commands to run in pandas are as follows:

  • pd.read_csv(‘inport_filename.csv', header=1): Reads data from a CSV file directly into a pandas DataFrame
  • my_df.to_csv(‘export_filename'): Directly exports the DataFrame to a CSV file to your workstation
  • my_df.shape: Provides the number of rows and columns of your DataFrame
  • my_df.info(): Provides metadata about your DataFrame, including data types for each column
  • my_df.describe(): Includes statistical details with a column that includes the count, mean, standard deviation (std), minimum, maximum, and percentiles (25th, 50th, and 75th) for any numeric column
  • my_df.head(2): Displays the first two records from the DataFrame
  • my_df.tail(2): Displays the last two records from the DataFrame
  • my_df.sort_index(1): Sorts by the labels along an axis&...
lock icon The rest of the chapter is locked
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 £16.99/month. Cancel anytime