awslabs / awslabs/python-deequ
hasNumberOfDistinctValues and hasHistogramValues require arguments that should be optional?
- Lingua principale
- Jupyter Notebook
- Stelle
- 826
- Fork
- 158
- Merge medio
- 9g 22h
- PR unite (30g)
- 3
Descrizione
**Describe the bug**
The docs and Scala code for `hasNumberOfDistinctValues` and `hasHistogramValues` indicate that providing the `binningUdf, maxBins` parameters should be optional, but from the function definitions they seem to be required.
**To Reproduce**
Steps to reproduce the behavior:
1. Try to define a check with `check.hasNumberOfDistinctValues('column_name', lambda x: x == 6)`
2. See error: TypeError: hasNumberOfDistinctValues() missing 2 required positional arguments: 'binningUdf' and 'maxBins'
**Expected behavior**
I'd like to be able to call the hasNumberOfDistinctValues and hasHistogramValues without specifying a binning function and maxBins.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia confrontando le definizioni Python di hasNumberOfDistinctValues e hasHistogramValues con la documentazione e il codice Scala corrispondente menzionati nell’issue. Riproduci la chiamata mostrata e il controllo equivalente dell’istogramma, quindi verifica che entrambi funzionino senza binningUdf e maxBins, mentre le chiamate esistenti basate sugli argomenti continuano a funzionare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python, scala
- Ambito
- data-engineering
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Tranquilla
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 55/100