alteryx / alteryx/nlp_primitives

Use a consistent return_type for Count* primitives

Ouverte
#156 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Python
Étoiles
37
Forks
13
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

In some counting primitives we are using a `Double` return type (like `PartOfSpeechCount`) while in others `IntegerNullable` is used as the return type (like `NumUniqueSeparators`).

Given that all of the counting primitives should be returning a whole number (or optionally null), `IntegerNullable` seems like a more appropriate return type to use than `Double`. We should investigate if there is a reason for using `Double` in some primitives, and, if possible, convert these to use an `IntegerNullable` return type.

Primitives to study:
- MedianWordLength
- PartOfSpeechCount
- PunctuationCount
- TitleWordCount
- TotalWordLength
- UpperCaseCount

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.