Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2022 08:19 AM
@Joseph Kambourakis I found a way to achieve this. using the function
def union_all(dfs):
if len(dfs) > 1:
return dfs[0].unionByName(union_all(dfs[1:]), allowMissingColumns=True)
else:
return dfs[0]