3 ms·
Well, x.__len__() is the same as len(x). You’re just supposed to remember not to use it (makes you wonder why they chose len(x) instead of x.len())
by bobbylarrybobby 8y ago
Well, x.__len__() is the same as len(x). You’re just supposed to remember not to use it (makes you wonder why they chose len(x) instead of x.len())
- goatlover 8y agoor x.length, since length should be a property like it is in Ruby and JS. In Pandas, a DataFrame's shape is a property and not a function or method.