Hi @ply,
Just to be specific, the python code you provided creates a dict and not a list. For R, the closest equivalent structure for a python dict object is a named list. If you are using {reticulate}, the dict is automatically converted to a named list in R when access from the python module, and a named listed can be easily converted to a data frame using as.data.frame(). For example
library(reticulate)
py_run_string("name = {
'A' : '1. OptionA',
'B' : '2. OptionB',
'C' : '3. OptionC',
'D' : '4. OptionD'
}")
py$name
#> $A
#> [1] "1. OptionA"
#>
#> $B
#> [1] "2. OptionB"
#>
#> $C
#> [1] "3. OptionC"
#>
#> $D
#> [1] "4. OptionD"
typeof(py$name)
#> [1] "list"
as.data.frame(py$name)
#> A B C D
#> 1 1. OptionA 2. OptionB 3. OptionC 4. OptionD