SyntaxFix
Write A Post
Hire A Developer
Questions
A simplification of the solution based on join():
join()
df = a.to_frame().join(b)