I have over 1500 python dataframes that I need to combine to one large dataframe. The issue that I have is that dataframes have unique column headers and different sizes.
For example dataframe 1 is:
type sc98*c.firstname sc98*c.lastname sc98*c.username text createdAt statusofExpiration need John Doe johndoe I need a new car. 111111 expired And dataframe 2 is:
type l8!7s4fn.firstname l8!7s4fn.lastname l8!7s4fn.username text tags.0 tags.1 image.0 createdAt statusOfExpiration need Matt Smith mattsmith I need a yoga trainer. yoga trainer blankurl.com/ 22222 fulfilled And I want to end up with a data frame like:
type firstname lastname username text createdAt statusofExpiration tags.0 tags.1 image.0 need John Doe johndoe I need a new car. 111111 expired need Matt Smith mattsmith I need a yoga trainer. 222222 fulfilled yoga trainer blankurl.com/ As I mentioned, I won't be able to call the values by indices because of the variable dataframes sizes and I can't call the values by the column name because dataframes have a unique identifiers (e.g. id.username) in the column headers.
Is there anyway to get around this problem?
renameon column first{ }when you write a question it's just above the text area) to make the lines of your data looks better.