Am 05.03.2026 um 18:52 schrieb Riccardo (Jack) Lucchetti:
Hi all,
I noticed that the "--send-data" option for the python variant of the
"foreign" command didn't actually do anything.
Maybe there could be an error message, but --send-data as per the
documentation is only intended "with R, Octave and Stata". But I guess
what you mean is to change that status quo.
I just pushed to git a small modification so that a script like the
following works:
...
note: I used pandas' read_csv() method, which means that this
won't
work if you haven't got pandas installed.
Is pandas really necessary? Currently gretl uses numpy.loadtxt for the
pre-defined gretl_loadmat function. Or to put it differently: if a
pandas dataframe is used, then its extra functionality should be used, I
think. (Like time period information and so on, I'm not really an expert
on pandas internals.)
thanks
sven