Skip to content

pawelwiejkut/sap-community-developer-challenge-eda-hana

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAP Community Developer Challenge: Exploratory Data Analysis with SAP HANA and Python

This repository is a starting point of the SAP Community Code Challenge for Exploratory Data Analysis (see the corresponding blog post).

The goal for this month's Developer Challenge is to help you getting started with fundamentals of the Python machine learning client for SAP HANA: DataFrames and EDA Visualizations.

Participation

In order to complete each of the challenges, you need to:

  1. Look into the Challenges to see what the challenge is each week.
  2. Submit your solution to the corresponding thread in SAP Community Application Development discussion.
  3. You can join the challenge and submit your solutions during any time of the month of March of 2023, but you need to complete challenges from previous weeks, if not done yet.

Setup for the challenge

To be able to participate in this challenge, it's essential that you complete the following steps to satisfy requirements:

Software setup

  1. Setup your SAP HANA database in SAP HANA Cloud trial.
    • Please note that it is recommended to use a Trial of SAP Business Technology Platform (aka SAP BTP), and not a Free Tier or your organization's account.
  2. Get SAP HANA Client installed on your local machine.
  3. Get JupyterLabs, or other environment where you can work with Jupyter notebooks (.ipynb files) using Python. There are many possible approaches for that.
  4. Get Python machine learning client for SAP HANA (hana-ml).

Security setup

We suggest you create a separate database user -- in our examples DevChallenger -- to use for the challenge.

  1. In your SAP HANA database use an admin account to create a database user and assign a required role to it.

    Below are required SQL statements, with more explanation about how to execute them available here.

    CREATE USER DevChallenger 
    PASSWORD "Up2TheChallenge!Iam" --replace this with your password of choice!
    NO FORCE_FIRST_PASSWORD_CHANGE;
    
    GRANT AFL__SYS_AFL_AFLPAL_EXECUTE TO DevChallenger;
  2. On your client machine add that user to the SAP HANA Client's secure store.

    hdbuserstore -i Set DevChallenger <your.hana.instance.host>:<port> DevChallenger
    hdbuserstore list DevChallenger

    Verify it works.

    hdbsql -j -U DevChallenger "SELECT Current_user FROM DUMMY;"

    If you are not familiar with commands above or not clear where to find your.hana.instance.host and port, please check the tutorial "Create a User, Tables and Import Data Using SAP HANA HDBSQL".

Requirements

  • A database user in SAP HANA database. The user should have required roles.
  • In your client environment:
    • SAP HANA Client
    • JupyterLabs
    • Python 3.7 - 3.10
    • Python machine learning client for SAP HANA

Download and Installation

You can fork or clone this repository.

Recommended Learning

There is quite a lot to digest when working in the world of Data Science. If you need an introduction, then you should check out Diving into the HANA DataFrame: Python Integration – Part 1.

These resources may also be helpful for a broader overview of capabilities of the Python machine learning client for SAP HANA:

Known Issues

No known issues.

How to obtain support

Create an issue in this repository, if you find a bug or have questions about the content.

For additional support, ask a question in the thread.

Contributing

If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.

License

Copyright (c) 2023 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

About

SAP Community Developer Challenge: Exploratory Data Analysis with SAP HANA and Python. Take part in the challenge and build your skills using the Python Client for SAP HANA.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%