Django 可以与 Pandas 和 numpy 配合使用吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/45117857/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can Django work well with pandas and numpy?
提问by David Yang
I am trying to build a web application that requires intensive mathematical calculations. Can I use Django to populate python charts and pandas dataframe?
我正在尝试构建一个需要大量数学计算的 Web 应用程序。我可以使用 Django 来填充 python 图表和 Pandas 数据框吗?
回答by hansTheFranz
You can use any framework to do so. If you worked with Python before I can recommend using Django since you have the same (clear Python) syntax along your project. This is good because you keep the same logic everywhere but should not be your major concern when it comes to choosing the right framework for your needs. So for example if you are a top Ruby-On-Rails developer I would not suggest to learn Django just because of Pandas.
您可以使用任何框架来执行此操作。如果您在我推荐使用 Django 之前使用过 Python,因为您的项目具有相同(清晰的 Python)语法。这很好,因为您在任何地方都保持相同的逻辑,但在为您的需求选择合适的框架时,这不应成为您的主要关注点。因此,例如,如果您是顶级 Ruby-On-Rails 开发人员,我不建议仅仅因为 Pandas 就学习 Django。
In general: A lot of packages/libraries are written in other languages but you will still be able to use them in Django/Python. So for example the famous "Elasticsearch" Searchbackend has its roots in JAVA but is still used in a lot of Django apps.
一般而言:许多包/库是用其他语言编写的,但您仍然可以在 Django/Python 中使用它们。例如,著名的“Elasticsearch”Searchbackend 源于 JAVA,但仍在许多 Django 应用程序中使用。
But it also goes the other way around "Celery" is written in Python but can be used in Node.js or PHP. There are hundreds of examples but I think you get the Point.
但它也反过来说“Celery”是用 Python 编写的,但可以在 Node.js 或 PHP 中使用。有数百个例子,但我认为你明白这一点。
I hope that I brought some light into the darkness. If you have questions please leave them in the comments.
我希望我为黑暗带来了一些光明。如果您有任何问题,请在评论中留言。