I recently wrote a python script for someone, where I converted a pandas dataframe's index into a list using to_list(). However, this does not work for them, as they get: AttributeError: 'Index' object has no attribute 'to_list' with their python interpretter.
I did some searching and found that there is also tolist() that seems to do the same as to_list(): searching on Pandas documentation finds both, with word-for-word identical description.
On the other hand, the documentation of Index mentions only to_list().
So I wonder whether there is a difference between the two
- in functionality
- in popularity and/or "officiality"/endorsement
- in support in different version of pandas