如何从SAP ERP中将数据拉入Python

发布于 2025-01-22 18:50:22 字数 159 浏览 3 评论 0原文

我是一名数据科学家,在SAP中没有任何先前的背景。

我需要将数据(查询和Qube)从SAP ERP提取到Python,以进行一些预测并自动化该过程。但是我找不到正确的答案。 我们的SAP ERP在Oracle数据库上运行,但我无法直接从Oracle删除数据, 我们也有SAP BW。 请帮忙

I am a data scientist and do not have any prior background in SAP.

I need to pull data (query and Qube) from SAP ERP to python for some predictions and automate the process. but I am not able to find the right answer to this.
our SAP ERP runs on the Oracle database but I don't have access to pull data directly from oracle,
also we have SAP BW.
Please help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

纵情客 2025-01-29 18:50:22

您可以从这样的教程开始一个
之后,当您卡住时,您可以提出更具体的问题。

You can start with tutorials like this one.
After that you can ask more specific question when you get stuck.

任谁 2025-01-29 18:50:22

您可以使用各种方式获取数据,也可以使用不同的数据摄入工具。
这也取决于多种因素,但要命名一些

  • 本地或云(AWS,Azure,GCP),
  • 无论您是否只想每天一次或每天获取数据。

我假设您只想获取一次数据,并且您的数据库连接效果很好。如果它们不在

pip install pandas
pip install SQLAlchemy
pip install cx_Oracle

您的Python笔记本中,则安装它们,或者IDE

import pandas as pd
import cx_Oracle
import sqlalchemy

在引擎中添加(用户,密码,hostip:port,service_name)的适当值。

engine = sqlalchemy.create_engine("oracle+cx_oracle://user:password@hostIP:port/service_name=DB_name", arraysize=1000)
SQL_query = """SELECT* from table"""
df = pd.read_sql(SQL_query, engine)

You can get data using various ways, or using different Data Ingestion tools.
It would also depend upon multiple factors but naming a few

  • On-premise or Cloud(AWS, Azure, GCP)
  • Whether you want to get data only once or on daily basis.

I am assuming you want to get data only once and your DB connectivity is working fine. Install these, if they are not

pip install pandas
pip install SQLAlchemy
pip install cx_Oracle

In your python notebook or IDE

import pandas as pd
import cx_Oracle
import sqlalchemy

Add appropriate values of (user, password, hostIP:Port , service_name) in engine.

engine = sqlalchemy.create_engine("oracle+cx_oracle://user:password@hostIP:port/service_name=DB_name", arraysize=1000)
SQL_query = """SELECT* from table"""
df = pd.read_sql(SQL_query, engine)
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文