Hello all! Just a question regarding conventions....
# questions
j
Hello all! Just a question regarding conventions. For the catalog, should we use snake_case or CamelCase for datasets ? Just asking to be consistent over all my projects. Thanks!
d
I think we’re in python world so
snake_case
all the way 💪
👀 1
💯 1
j
Although this is what I would prefer to do, I tend to use CamelCase 🐪 for classes and snake_case 🐍 for functions. Nevertheless, I feel that datasets are something closer to a class rather than a function. This is what makes me wonder what to use.
d
true!
in truth it doesn’t matter, personal preference should matter
👍 1
n
I tend to capitalise it if it's written in catalog.yml to differentiate from in memory dataset. Camal would do too
👍 2
d
snake
By which I mean, I use snake case.
Nevertheless, I feel that datasets are something closer to a class rather than a function.
I would say, it's an instance? For example:
Copy code
bikes:
  type: pandas.CSVDataset
  filepath: data/01_raw/bikes.csv
Is most like:
Copy code
bikes = pandas.CSVDataset(filepath="data/01_raw/bikes.csv")