GithubHelp home page GithubHelp logo

sap-samples / sap-community-developer-challenge-eda-hana Goto Github PK

View Code? Open in Web Editor NEW
11.0 5.0 15.0 1.69 MB

SAP 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.

License: Apache License 2.0

Jupyter Notebook 100.00%
code-challenge developer-challenge python sample sap-community sap-hana

sap-community-developer-challenge-eda-hana's Introduction

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.

sap-community-developer-challenge-eda-hana's People

Contributors

ospo-bot[bot] avatar sygyzmundovych avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sap-community-developer-challenge-eda-hana's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.