Pseudo code
class some_class:
arg1 = 12345
def __init__(self, arg1):
self.variable1 = 1
self.variable2 = 123
self.variable_arg1 = arg1
...
So I would like a data frame with columns names variable
and value
, where
variable = variable1, variable2, variable_arg1
value = 1, 123, arg1
This is just an example so there are only three instances, but need a solution if there are a million.
Maybe as a bonus, I need the above in Pandas dataframe. How would I do this in tidypolars
?