Fable.Python icon indicating copy to clipboard operation
Fable.Python copied to clipboard

Pandas binding

Open poborin opened this issue 3 years ago • 5 comments

Hello,

I'm exploring if making a Pandas binding is an achievable task. So far I just need a limited subset of features: CSV(write), HDF5(read/write) and DataFrame(creation, indexing and HDF5/CSV export).

There was a limitation mentioned that the package does not ship with its own stubs or type annotations. Could you please explain it a little more?

poborin avatar Aug 31 '22 07:08 poborin

Would be really great if you wanted to do this. Pandas do definitively not ship their own Fable bindings so this is not a problem. I should rephrase that sentence.

dbrattli avatar Aug 31 '22 09:08 dbrattli

That sounds very good! This answers on my question. Meanwhile, what is the best communication platform if I have a question? Is it the Fable Gitter?

poborin avatar Aug 31 '22 23:08 poborin

oh, I just realized that Fable.Python compiles to python code (who would expect! 😆 ). However, I would like to use pandas in the Fable.JS web app. Now I'm thinking, what would be the best way to do so. At the moment I have the only idea of using AJAX, but it's going to be quite ugly for what I'm trying to achieve

poborin avatar Sep 07 '22 11:09 poborin

You could try out Fable.Giraffe and Remoting (it's built-in). That gives you a Fable app with a Python backend that can easily be integrated with Pandas etc.

dbrattli avatar Sep 12 '22 10:09 dbrattli

Hmm, that requires a backend. I wanted to create a self contained web app. Let me hang on it for a while.

poborin avatar Sep 13 '22 22:09 poborin