Closed gassechen closed 1 month ago
defdf
is a macro, so you do have to use eval
on it. It was modeled on defparameter
, and I've been thinking for a while now that it should be converted to a function, as I've needed it in situations similar to yours. Nevertheless, it's a macro now and anything other than a top level definition means eval
. You might consider eval-when
to see if you can make it work elsewhere (here's a stackoverflow thread on uses of eval). Alternatively perhaps you can convert defdf
into a function equivalent, and I'd welcome that as a pull request.
Your json-to-data-frame
seems to be more generic than existing json-> data-frame
converters; You might want to refer to the one used in plot
for ideas on how to (and how not to) do similar conversions: encode.lisp. I wasn't able to figure out a generic json parser, and look forward to seeing this completed!
This is what I'm doing with lisp-stat, data-frame and vega plot https://youtu.be/ZGgvDj00SZE?feature=shared
This is what I'm doing with lisp-stat, data-frame and vega plot https://youtu.be/ZGgvDj00SZE?feature=shared
Very interesting! The web page graphics look very professional.
Do you have what you need as far as using the eval
statement? It's correct as far as this usage goes. If there's nothing else I can help with I'd like to close this issue. You can always reopen another if you like.
Hi. I'm making a package for data-frames. The goal is to convert an arbitrary json to a data-frame (like doing python3 with pandas). I have this code that works, but I don't know if the use of "eval" is completely correct.