4 ms·
I built something somewhat similar where I manipulate pandas dataframes through a gui [1]. The gui emits json-flavored lisp [2] (replaced parens with json squa
by paddy_m 2y ago
I built something somewhat similar where I manipulate pandas dataframes through a gui [1]. The gui emits json-flavored lisp [2] (replaced parens with json square braces) which is then interpreted through two interpreters which have the same functions loaded in. One interpreter modifies the dataframe, the other emits python code that performs the exact same manipulation, so you can copy and paste the python code. The user never sees JLisp, but it is there under the covers.
This works hand in hand with autocleaning that looks at a dataframe and suggests jlisp cleaning commands.
[1] https://youtu.be/GPl6_9n31NE?si=JJPtk6K6FNX0sboi&t=603 https://youtu.be/GPl6_9n31NE?si=JJPtk6K6FNX0sboi&t=603
[2] jlisp.py, based on Peter Norvig's lispy with a reader modified to accept JSON