fable-compiler / Fable.Python

Python bindings for Fable
https://fable.io/docs/
MIT License
135 stars 10 forks source link

Pandas binding #65

Open poborin opened 2 years ago

poborin commented 2 years ago

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?

dbrattli commented 2 years ago

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.

poborin commented 2 years ago

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 commented 2 years ago

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

dbrattli commented 2 years ago

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.

poborin commented 2 years ago

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