iamaziz / PyDataset

Instant access to many datasets in Python.
MIT License
935 stars 86 forks source link

Break same name with R #6

Closed kootenpv closed 7 years ago

kootenpv commented 8 years ago

I always thought having the name "data" as a function globally is one of the weirdest things in R. Perhaps consider changing it into load_data (comparable to load_xxxx in sklearn). Then people can use data (however vague that term is anyway) in their scripts freely.

iamaziz commented 8 years ago

At the beginning, I was not sure what to call it, then just decided to keep it as simple as possible. And with that name, displaying the documentation (as well as displaying the existing datasets) would still make sense and does not need to have a separate function name for each. But (thanks to Thomas Wouters) you can always call it whatever you like :-) just

from pydataset import data as load_some_awesome_dataset