मैं सिर्फ पांडा में पिघला हुआ फ़ंक्शन का उपयोग करना चाहता हूं और मैं बस वही त्रुटि प्राप्त करता हूं।'डेटाफ्रेम' ऑब्जेक्ट में कोई विशेषता नहीं है 'पिघला'
बस प्रलेखन द्वारा प्रदान उदाहरण टाइपिंग:
cheese = pd.DataFrame({'first' : ['John', 'Mary'],
'last' : ['Doe', 'Bo'],
'height' : [5.5, 6.0],
'weight' : [130, 150]})
मैं सिर्फ त्रुटि मिलती है:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-119-dc0a0b96cf46> in <module>()
----> 1 cheese.melt(id_vars=['first', 'last'])
C:\Anaconda2\lib\site-packages\pandas\core\generic.pyc in __getattr__(self, name)
2670 if name in self._info_axis:
2671 return self[name]
-> 2672 return object.__getattribute__(self, name)
2673
2674 def __setattr__(self, name, value):
AttributeError: 'DataFrame' object has no attribute 'melt'`