Skip to content

Commit

Permalink
Merge pull request #190 from ing-bank/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
sbrugman committed Apr 29, 2022
2 parents 78073fe + aff68b7 commit 2759f38
Show file tree
Hide file tree
Showing 57 changed files with 110 additions and 102 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: [3.6, 3.7, 3.8]
python: [3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -36,7 +36,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python: [3.6]
python: [3.7]
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -77,10 +77,10 @@ jobs:
- test_spark
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.6
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.6
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install addlicense
run: |
export PATH=${PATH}:`go env GOPATH`/bin
go get -v -u github.com/google/addlicense
go install github.com/google/addlicense@latest
- name: Check license
run: |
export PATH=${PATH}:`go env GOPATH`/bin
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand All @@ -18,11 +18,11 @@ repos:
- tryceratops
args: [ "--select=E9,F63,F7,F82,C4,F401,TR004,TC200,TC201,TC202"]
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.1
rev: v2.32.0
hooks:
- id: pyupgrade
args: ['--py36-plus','--exit-zero-even-if-changed']
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.0
rev: v1.12.1
hooks:
- id: blacken-docs
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,4 +1,4 @@
Copyright 2021 ING Wholesale Banking Advanced Analytics
Copyright 2022 ING Wholesale Banking Advanced Analytics

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
documentation files (the "Software"), to deal in the Software without restriction, including without limitation
Expand Down
42 changes: 26 additions & 16 deletions docs/source/configuration.rst
Expand Up @@ -243,24 +243,34 @@ Now that spark is installed, restart the runtime.

.. code-block:: python
import os
import os
os.environ["JAVA_HOME"] = "/usr/lib/jvm/java-8-openjdk-amd64"
os.environ["SPARK_HOME"] = "/content/spark-2.4.7-bin-hadoop2.7"
os.environ["JAVA_HOME"] = "/usr/lib/jvm/java-8-openjdk-amd64"
os.environ["SPARK_HOME"] = "/content/spark-2.4.7-bin-hadoop2.7"
import findspark
import findspark
findspark.init()
findspark.init()
from pyspark.sql import SparkSession
from pyspark.sql import SparkSession
spark = (
SparkSession.builder.master("local[*]")
.config(
"spark.jars",
"/content/jars/histogrammar_2.12-1.0.20.jar,/content/jars/histogrammar-sparksql_2.12-1.0.20.jar",
)
.config("spark.sql.execution.arrow.enabled", "false")
.config("spark.sql.session.timeZone", "GMT")
.getOrCreate()
)
Troubleshooting Spark
~~~~~~~~~~~~~~~~~~~~~

The following section documents error that you may run into using spark, and how they can be resolved.

TypeError: 'JavaPackage' object is not callable

This error occurs when pyspark cannot find the required jars. Ensure that the location of "spark.jars" or "spark.jars.packages" is correct (see examples above). Stop the spark session and restart it with the exact location. You can use the ones hosted on github using the "spark.jars.pacakges" example or place the jars locally and use "spark.jars", depending on whichever is easiest in your setup.

spark = (
SparkSession.builder.master("local[*]")
.config(
"spark.jars",
"/content/jars/histogrammar_2.12-1.0.20.jar,/content/jars/histogrammar-sparksql_2.12-1.0.20.jar",
)
.config("spark.sql.execution.arrow.enabled", "false")
.config("spark.sql.session.timeZone", "GMT")
.getOrCreate()
)
If you are running in a jupyter notebook, then the kernel needs to be restarted.
2 changes: 1 addition & 1 deletion popmon/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/alerting/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/alerting/alerts_summary.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/alerting/compute_tl_bounds.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/analysis/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/analysis/apply_func.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/analysis/comparison/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/analysis/comparison/comparisons.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/analysis/comparison/hist_comparer.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/analysis/functions.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/analysis/hist_numpy.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/analysis/merge_statistics.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/analysis/profiling/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/analysis/profiling/hist_profiler.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/analysis/profiling/pull_calculator.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/base/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/base/module.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/base/pipeline.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/config.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/decorators/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/decorators/pandas.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/decorators/spark.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/hist/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/hist/filling/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/hist/hist_splitter.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/hist/hist_utils.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/io/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/io/file_reader.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/io/file_writer.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/io/json_reader.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/pipeline/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/pipeline/amazing_pipeline.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/pipeline/metrics.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/pipeline/metrics_pipelines.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/pipeline/report.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/pipeline/report_pipelines.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/resources.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/stats/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/stats/numpy.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/stitching/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/stitching/hist_stitcher.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/utils.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/visualization/__init__.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/visualization/alert_section_generator.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/visualization/backend.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion popmon/visualization/histogram_section.py
@@ -1,4 +1,4 @@
# Copyright (c) 2021 ING Wholesale Banking Advanced Analytics
# Copyright (c) 2022 ING Wholesale Banking Advanced Analytics
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down

0 comments on commit 2759f38

Please sign in to comment.