qri-io / starlib

qri's standard library for starlark
MIT License
113 stars 29 forks source link

feat(dataframe): Output size is configurable for stringification #146

Closed dustmop closed 2 years ago

dustmop commented 2 years ago

DataFrames have a configuration that controls details about the output area that a transform is running within. This could be, for example, a terminal window or an html element such as a textarea. The configuration is used to choose which rows or columns to skip, if any, when stringifying a DataFrame. The configuration is stored in the starlark.Thread, which avoids conflicts when different users are using DataFrames at the same time with different output areas.