HumanSignal / HumanSignal/label-studio
Text from a column isn't shown if the only values are numbers
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
**Describe the bug**
If I import a CSV file with only numbers in one of the columns, then I try to display that column on the labeling interface, it does not appear.
**To Reproduce**
Steps to reproduce the behavior:
1. Create a new project and import this CSV file:
```
text,label
bob,1
susan,2
john,3
```
2. Use this code for the labeling interface:
```xml
</View>
```
3. Open a labeling task on any of the three items. It will show the `text` field but not the `label` field.
Note that if I then import another CSV file where I only change one of the rows to be `one` instead of `1`, then all three of the new rows show up on the labeling task, but the original three still only show the `text` field.
**Expected behavior**
I expect to see the number as well as the text field when viewing the labeling interface.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Environment (please complete the following information):**
- OS: Ubuntu 23.10
- Label Studio Version
{
"release": "1.11.0",
"label-studio-os-package": {
"version": "1.11.0",
"short_version": "1.11",
"latest_version_from_pypi": "1.11.0",
"latest_version_upload_time": "2024-01-30T21:47:33",
"current_version_is_outdated": false
},
"label-studio-os-backend": {
"message": "chore: Cherry picked LEAP-625 into release 1.11.0 (#5400)",
"commit": "d88e4f34452234d597622b68da6007009e6408cd",
"date": "2024/01/30 18:41:33",
"branch": "",
"version": "d88e4f3"
},
"label-studio-converter": {
"version": "0.0.57"
}
}
Contributor guide
Assessment
This issue has not been assessed yet.