Learn Data Analysis With Pandas - Introduction
Learn Data Analysis With Pandas - Introduction
Introduction to Pandas
Pandas DataFrame creation
The fundamental Pandas object is called a DataFrame.
It is a 2-dimensional size-mutable, potentially # Ways of creating a Pandas DataFrame
heterogeneous, tabular data structure. # Passing in a dictionary:
A DataFrame can be created multiple ways. It can be data = {'name':['Anthony', 'Maria'], 'age':
created by passing in a dictionary or a list of lists to the
[30, 28]}
pd.DataFrame() method, or by reading data from a CSV
df = pd.DataFrame(data)
le.
Pandas
Pandas is an open source library that is used to analyze
data in Python. It takes in data, like a CSV or SQL import pandas as pd
database, and creates an object with rows and columns
called a data frame. Pandas is typically imported with
the alias pd .