Python Pandas – Combine 2 Columns of a DataFrame


This Python Pandas tutorial shows how to combine or merge two columns of a DataFrame into one new column using string addition. This is especially useful for dates where you have separate columns for year and month or month and date.


► Numpy Intro:
► Numpy Intro Jupyter nb:
► Pandas Intro:
► Pandas Import Data:
► Pandas Selecting & Filtering:
► Pandas Time Series:
► Pandas and MatPlotLib:
► Matplotlib Intro:

#Python #Pandas



Comment List

  • Joe James
    January 11, 2021

    You could just turn them into a datetime object in this case. Would be easier.

  • Joe James
    January 11, 2021

    I came from your quora post lol

  • Joe James
    January 11, 2021

    Joe James, Thanks for your hard work on sharing the knowledge.

  • Joe James
    January 11, 2021

    I'm new to coding which laptop should I buy ?

Write a comment