You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is often required to get the first row values of a range deserialized to strings (which are the range headers), so IMHO it would be useful to add a specific helping method headers to Range, which would be equivalent to calling rows().next() and then converting to String. The csv crate has a similar method, see tutoral and documentation.
To convert each DataType value to String, the headers method should call ToString::to_string.
The text was updated successfully, but these errors were encountered:
lucatrv
changed the title
Please add Range::get_headers() -> Vec<Option<String>>
Please add headers() -> Vec<Option<String>>Jun 10, 2023
lucatrv
changed the title
Please add headers() -> Vec<Option<String>>
Please add Range::headers() -> Vec<Option<String>>Jun 11, 2023
lucatrv
changed the title
Please add Range::headers() -> Vec<Option<String>>
Please add Range::headers() -> Vec<String>Jun 30, 2023
lucatrv
added a commit
to lucatrv/calamine
that referenced
this issue
Mar 1, 2024
It is often required to get the first row values of a range deserialized to strings (which are the range headers), so IMHO it would be useful to add a specific helping method
headers
toRange
, which would be equivalent to callingrows().next()
and then converting toString
. Thecsv
crate has a similar method, see tutoral and documentation.To convert each
DataType
value toString
, theheaders
method should callToString::to_string
.The text was updated successfully, but these errors were encountered: