Closed auge closed 1 month ago
Hi @auge, it is currently not possible to read string data from files, but this feature is already WIP and will be added soon.
PR #797, which is about to be finalized and merged, will bring support for reading CSV files into matrices of string value type. These matrices (or individual columns) can then be processed with some basic string operations (e.g., concatenation, lower/upper case) or converted to numerical data (e.g., through number parsing, dictionary coding, or one-hot encoding).
As a follow-up, we're already working on support for frames with string columns and reading CSV files with string columns into a frame directly.
In the meantime, a work-around can be to convert the string data to numbers with some external tool/script (e.g., through dictionary coding) and to read just the numerical data into DAPHNE.
This issue is closed now. In the meta data file, one has to specify "valueType": "str"
for string columns. The documentation will be updated shortly.
(How) is it currently possible to load a dataframe with string as column type?
According to https://daphne-eu.github.io/daphne/FileMetaDataFormat/, there is only numeric data possible?
can we have support for valueType: string?
data.csv
data.csv.meta
daphne script: