numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
18 stars 6 forks source link

Table method for autoconversion of column types #67

Closed numeredev closed 1 year ago

numeredev commented 1 year ago

DESCRIPTION

What does your feature request improve on? Please describe. During loading a file the column types are automatically detected and converted. Would be nice, if there's a method to do that also during runtime.

Describe the solution you'd like Create a table method like TABLE().autoconvert({1:ncols}) to automatically detect the best column type and convert it to this. Will of course only apply to string columns.

Additional context Add any other context or screenshots about the feature request here.

(Do not write below this line)


DEVS' SECTION

ANALYSIS

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST

numeredev commented 1 year ago

Might be more straightforward to instead of introducing a new method to extend the current method like TAB().convert({1:ncols}, "auto")

numeredev commented 1 year ago

Seems to erroneously autoconvert values.