Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shouples authored Oct 25, 2023
1 parent 53b46aa commit d84c46e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions r/noteable/.Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ prepare_dex_content <- function(df) {

# vectorized format (list of lists)
#data = as.matrix.data.frame(t(df))

# pandas df.to_dict("records") format
# NOTE: if we don't pass check.names=FALSE, columns with spaces will show periods instead, which will
# break the connection between the fields defined in `schema` and the keys in `data`
data = as.data.frame.list(df, check.names=FALSE)

list(
Expand Down

0 comments on commit d84c46e

Please sign in to comment.