मुझे pandas.DataFrame
दौर चाहिए।पांडा को बदलने का सही तरीका। डेटाफ्रेम?
यहाँ मैं अब तक की कोशिश की है है:
import pandas as pd
data = pd.DataFrame([1.4,2.5,3.8,4.4,5.6],[6.2,7.6,8.8,9.1,0])
print(round(data))
लेकिन जब मैं इस कोड चलाने के लिए, मैं निम्नलिखित त्रुटि मिलती है:
Traceback (most recent call last):
File "C:\Users\*****\Documents\*****\******\****.py", line 3, in <module>
print(round(data))
TypeError: type DataFrame doesn't define __round__ method
pandas.DataFrame
पूर्णांक बनाना सही तरीका क्या है?
Dup http://stackoverflow.com/q/19100540/564538 –