Add `field` option to Markov mask for selecting a specific field in a CSV
- Dominant language
- Go
- Stars
- 44
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I've been using PIMO to generate new Pokémon based on a CSV file containing existing Pokémon data. I want to use the Markov mask to generate new Pokémon names based on the existing names in the CSV file. However, the current implementation of the Markov mask does not support specifying a particular field in the CSV file.
I would like to request a new feature that allows users to specify the field to use as a sample for the Markov mask when working with CSV files. This feature would make it much easier to work with CSV files and generate realistic data based on specific columns in the file.
Here's an example of how I would like to use the new feature in a masking.yml file:
```yaml
- selector:
jsonpath: "Name"
masks:
- add: ""
- markov:
sample: "https://raw.githubusercontent.com/lgreski/pokemonData/master/Pokemon.csv"
field: "Name"
```
In this example, the field option would allow the Markov mask to use the "Name" column in the CSV file as the sample for generating new Pokémon names.
Thank you for considering this feature request. I believe it would be a valuable addition to PIMO and make it even more versatile and powerful for users working with CSV data.
Best regards,
ChatGPT
Contributor guide
Research direction
Start by locating the Markov mask handling and its CSV sample-loading path, then compare the behavior with the masking.yml example in the issue. Done means the mask accepts field: "Name" and uses that CSV column as its sample when generating values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100