Pandas Concatenation in Details- .concat()

preview_player
Показать описание
These are the DataFrames I used for this tutorials:

df1 = pd.DataFrame({
"Name": ["Ria", "Lia", "John", "Kevin", "Lily"],
"SN": [12, 8, 30, 21, 19],
"Position": ["Fifth", "Second", "First", "Tenth", "Twelveth"],
"Group" : ["B", "D", "A", "C", "E"]
}, index = [0, 1, 2, 3, 4]
)

df2 = pd.DataFrame({
"Name": ["Laura", "Jeff", "Rony", "Lian"],
"SN": [34, 20, 3, 14],
"Position": ["Third", "Twenty First", "Fifteenth", "Seventh"],
"Group" : ["C", "F", "A", "E"]
}, index = [5, 6, 7, 8]
)

df3 = pd.DataFrame({
"Name": ["Mike", "Molly", "Jenny", "Rob", "Clara"],
"SN": [22, 31, 10, 17, 27],
"Position": ["Sixth", "Seventeenth", "Twenty Second", "Forth", "Ninth"],
"Group" : ["D", "F", "A", "c", "E"]
}, index = [9, 10, 11, 12, 13]
)

df4 = pd.DataFrame({
"Name": ["Mike", "Molly", "Jenny", "Runi", "Jimmy"],
"SN": [22, 31, 10, 41, 26],
"City": ["Houston", "Miami", "Chicago", "Hollywood", "Phoenix"],
"Group" : ["D", "F", "A", "C", "E"]
}, index = [9, 10, 11, 15, 16]
)

Please feel free to check out my Data Science blog where you will find a lot of data visualization, exploratory data analysis, statistical analysis, machine learning, natural language processing, and computer vision tutorials and projects:

Twitter page:

Facebook Page:

#pandas #Python #DataScience #DataAnalysis
Рекомендации по теме
Комментарии
Автор

Rashida, this is very, very helpful. You don't skip steps and you explain and more importantly, you show what is happening. I am recommending you to my fellow students

DonnaKehoe-ts