How to merge a Series and DataFrame - Intellipaat Community
intellipaat.com › community › 27168Aug 31, 2019 · AttributeError: 'Series' object has no attribute 'columns' and. df.join(s) ValueError: Other Series must have a name. EDIT The first two answers posted highlighted a problem with my question, so please use the following to construct df: df = pd.DataFrame({'a':[np.nan, 2, 3], 'b':[4, 5, 6]}, index=[3, 5, 6]) with the final result a b s1 s2