Skip to main content

This is a utility package designed to enable data scientitists and analysts to easily access GDP data within a python environment

Project description

Gdp Tools Package

Code Checks Code Style

This is a utility package designed to enable data scientists and analysts to easily access GDP data within a python environment

Requirements:

  • The data professional should be able to clone the package at the start of new project and when in production
  • The package will contain a number of support functions serving the following objectives: -- Accessing data on GDP Base/CIM/Warehouse -- Accessing data in temp storage (LAB) -- Querying that data in SQL -- utlising that data as a Python/PySpark DataFrame -- Storing processed data to the temp storage space (LAB)
  • any data access configs should available to be used

Credentials

Contact a member of the Laing O'Rourke Data Science team to set up up your credentials.

USERNAME and PASSWORD need to be entered in as arguments when initailising the tool, for example '''gdp_tools = GlobalDataPlatformTools(USERNAME,PWD)'''

Functionality

Should be used in Azure ML Studio. NO access to GDP locally.

validate_odbc_drivers - check if the correct ODBC connectors are installed, install them as necessary automatically [check_odbc_driver, install_odbc_driver]

setup_odbc_connection - set up the ODBC with your credentials. Happens when class is initalised

query_gdp_to_pd - enter a SQL query as a string, return the data as a pandas dataframe

search_tables - will return a list of all table in the GDP. give it the argument 'source_system' = '[COINS]' to narrow your search for any table with the term 'COINS' in it (for example)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lor_gdp_tools-0.1.14.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lor_gdp_tools-0.1.14-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file lor_gdp_tools-0.1.14.tar.gz.

File metadata

  • Download URL: lor_gdp_tools-0.1.14.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.5

File hashes

Hashes for lor_gdp_tools-0.1.14.tar.gz
Algorithm Hash digest
SHA256 1461d9cd8a4dc2937e5b613fea9b4b106d1507d70990e146ddcf9c9a7e5b76db
MD5 8f3f91ac3df244511db40b62944e403c
BLAKE2b-256 9ef39b65d29a25d11cf8b6f84eb4ed950c07f6121d7daec4c0a77d39468593de

See more details on using hashes here.

File details

Details for the file lor_gdp_tools-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: lor_gdp_tools-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.5

File hashes

Hashes for lor_gdp_tools-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 0b2efd9a0821154c18c9f07a3a06074dc731b0aeaf15d1a2c9d3be1f9d2ac091
MD5 056e770fcbbcf418004b529afce87486
BLAKE2b-256 c8387f3b4a05b4cbda3d652bdd848827314e18b1865c3276d9f8d75921727e62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page