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
CSV exports produced by Sparv should not have spaces in the column headers. (Requested by Markus)
From en e-mail by Faton (KBlabb) on 2022-12-14:
When working with dataframes in Python, R, and Julia, there exist common convenient patterns of indexing and subsetting columns that do not require users to put quotes around the column name. E.g. if there's a column called name in a dataframe df, in Python and Julia, you can retrieve this column by
df.name
and in R:
# Standard base R
df$name
# dplyr in R
df |>
select(name)
If spaces exist in column names, e.g. if a coulmn is named name 2, then all of the above patterns will produce errors. The users are then limited to a single way of indexing with brackets and quotes around the column name (or renaming the columns). This is the reason why there exists a strong convention in all these languages to not use, and to recommend against using, spaces in column names. Usually underscores _ are used instead.
The text was updated successfully, but these errors were encountered:
CSV exports produced by Sparv should not have spaces in the column headers. (Requested by Markus)
From en e-mail by Faton (KBlabb) on 2022-12-14:
The text was updated successfully, but these errors were encountered: