asj177 asj177 - 1 year ago 140
Python Question

Appending one data frame into another

I want to bring three data frames into a single one .All data frames have a single column .


All have 100 records in it so my goal is to bring them into a single data frame which will then contain 300 records .My below code is not working


the total number of records in org_city_id is still 100 .

Can someone please suggest .

Answer Source

Get a single column name for all your dataframes:

org_city_id.columns = pol_city_id.columns = pod_city_id.columns = 'Final Name'

Then concat them:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download