Skip to content

Conversation

@gustavocidornelas
Copy link
Contributor

…API reference

Summary

Updated API reference according to Jason's feedback. He'd like to more clearly see which args are optional and which aren't.

  • added the optional next to the arg type and before the default value, following the ordering that pandas uses (e.g. here)
  • updated some of the types to reflect what's actually optional. E.g., project description was marked as optional, but the backend doesn't accept it as a null.
  • moved the arg commit_message towards the top of the docstring, to make it more evident
language: str = "en",
sep: str = ",",
commit_message: Optional[str] = None,
language: Optional[str] = "en",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this typing is wrong. If it's not specified, it defaults to "en", which is a string.

label_column_name: str,
feature_names: List[str] = [],
text_column_name: Optional[str] = None,
text_column_name: str = None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you remove the Optional? It defaults to None

----------
file_path : str
Path to the csv file containing the dataset.
commit_message : str, default None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you move this up here? The order in here needs to match the order of the args

@whoseoyster whoseoyster closed this Sep 2, 2022
@whoseoyster whoseoyster deleted the cid/optional-args branch September 12, 2022 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants