website:
10 minutes to pandas
Data Manipulation with Pandas
Contents
Link to Juypter Notebook
Some common functions of pandas listed
Creating a series
series_name = pd.Series(["1", "2", "3"])
Creating a dataframe
dataframe_name = pd.DataFrame({
"key1_name": value1_name, "key2_name": value2_name})
Importing data
dataframe_name = pd.read_csv("file_name")
OR
dataframe_name = pd.read_csv("URL_of_the_file")
Exporting data
dataframe_name.to_csv("file_name_you_want_to_store_as")
Describing data
.dtypes
.dtypes shows us what datatype each column contains.
dataframe_name.dtypes
.describe()
.describe() gives you a quick statistical overview of the numerical columns.
dataframe_name.describe()
.info()
.info() shows a handful of useful information abou