Concatenating and Appending dataframes - p.5 Data Analysis with Python and Pandas Tutorial

Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=ylIRlTFt_Fk



Category:
Tutorial
Duration: 7:51
112,426 views
834


Welcome to Part 5 of our Data Analysis with Python and Pandas tutorial series. In this tutorial, we're going to be covering how to combine dataframes in a variety of ways.

In our case with real estate investing, we're hoping to take the 50 dataframes with housing data and then just combine them all into one dataframe. We do this for multiple reasons. First, it is easier and just makes sense to combine these, but also it will result in less memory being used. Every dataframe has a date and value column. This date column is repeated across all the dataframes, but really they should all just share the one, effectively nearly halving our total column count.

When combining dataframes, you might have quite a few goals in mind. For example, you may want to "append" to them, where you may be adding to the end, basically adding more rows. Or maybe you want to add more columns, like in our case. There are four major ways of combining dataframes, which we'll begin covering now. The four major ways are: Concatenation, joining, merging, and appending. We'll begin with Concatenation.

Sample code and text-based version of this tutorial: http://pythonprogramming.net/concatenate-append-data-analysis-python-pandas-tutorial/

http://pythonprogramming.net
https://twitter.com/sentdex




Other Videos By sentdex


2015-11-03Rolling Apply and Mapping Functions - p.15 Data Analysis with Python and Pandas Tutorial
2015-10-29Adding other economic indicators - p.14 Data Analysis with Python and Pandas Tutorial
2015-10-27Joining 30 year mortgage rate - p.13 Data Analysis with Python and Pandas Tutorial
2015-10-21Applying Comparison Operators to DataFrame - p.12 Data Analysis with Python and Pandas Tutorial
2015-10-17Rolling statistics - p.11 Data Analysis with Python and Pandas Tutorial
2015-10-12Handling Missing Data - p.10 Data Analysis with Python and Pandas Tutorial
2015-10-09Resampling - p.9 Data Analysis with Python and Pandas Tutorial
2015-10-05Percent Change and Correlation Tables - p.8 Data Analysis with Python and Pandas Tutorial
2015-10-03Pickling - p.7 Data Analysis with Python and Pandas Tutorial
2015-09-29Joining and Merging Dataframes - p.6 Data Analysis with Python and Pandas Tutorial
2015-09-25Concatenating and Appending dataframes - p.5 Data Analysis with Python and Pandas Tutorial
2015-09-23Building dataset - p.4 Data Analysis with Python and Pandas Tutorial
2015-09-20IO Basics - p.3 Data Analysis with Python and Pandas Tutorial
2015-09-16Pandas Basics - p.2 Data Analysis with Python and Pandas Tutorial
2015-09-14Data Analysis with Python and Pandas Tutorial Introduction
2015-09-11PythonProgramming.net's +=1 Subscription
2015-09-01OpenCV Face Detection with Raspberry Pi - Robotics with Python p.7
2015-08-30Programming Autonomy - Robotics with Python Raspberry Pi and GoPiGo p.6
2015-08-27Weaponizing our Robot - Robotics with Python Raspberry Pi and GoPiGo p.5
2015-08-25Programming Remote Control - Robotics with Python Raspberry Pi and GoPiGo p.4
2015-08-23Programming Robot Basics - Robotics with Python Raspberry Pi and GoPiGo p.3



Tags:
Pandas
Python (Programming Language)
Data Analysis (Media Genre)
Append
Concatenation
dataframe
pandas.DataFrame.append
DataFrame.append
pandas.concat