ps=pd.Series(range(5),index=['a','b','c','d','e'])
ps=ps.reindex(['a','b','c','d','e','f','g'])
ps1=pd.Series({'f':999})
ps=ps.append(ps1)
ps
AttributeError Traceback (most recent call last)
in
----> 1 ps1=pd.Series({'f':999})
2 ps=ps.append(ps1)
3 ps
D:\software\anaconda\lib\site-packages\pandas\core\generic.py in getattr(self, name)
5463 if self._info_axis._can_hold_identifiers_and_holds_name(name):
5464 return self[name]
-> 5465 return object.getattribute(self, name)
5466
5467 def setattr(self, name: str, value) -> None:
AttributeError: 'DataFrame' object has no attribute 'Series'