Skip to main content

auto-preprocess GL to upload spotlight

Project description

SPOTLIGHT

Ver

v0.0.2 DD 231218

목적

Spotlight upload를 위한 정형화된 전처리 자동화

주요기능

  1. 전처리
  • Excel to Text
  • concatenate text
  • check text header (TEST)
  • Merge Text (i.e. BSEG+BKPF) (if already set df, automatically transferred to dfA)
  1. DF to SQL(IMPORT)
  • To Insert to SQL, Read columns'length
  • Create Table => with mySQL
  • Import file and Insert to DB
  1. MAIN RUN
  • Read text to dataframe
  • Auto_MAP : MAP_GL.xlsx 파일을 활용하여 columns 자동 매핑 + 추가
  • Modify mode(After Auto_MAP)
  • To recon G/L and T/B, export SUM(AMT LC)groupby Acct

3-1. MODIFY MOD

3-1-1. 전처리-전표금액

  • replace string (Kill comma, space, regex etc.)
  • Apply DC (차변은 +, 대변은 - 처리)
  • To Minus () or - : 문자열 () 또는 후위-인 경우 마이너스로 변환
  • Multiple 100 : 곱하기 100
  • FROM 전표금액 TO 차대금액 : signed 전표금액에서 unsigned 차변/대변을 생성한다.
  • FILLNA(0) : N/A를 0으로 채운다.
  • 자동수동 : 특정 컬럼값(전표성격, 사용자 등)이 특정 문자열(복수 가능)을 포함하는 행을 A로 지정

3-1-2. 전처리-기타

  • drop a column
  • drop duplicate
  • Change column name
  • Change column datatype
  1. SAVE TO..
  • Save text
  • Save a part of df(특정 계정과목 추출 등)
  1. 일반기능
  • MANUAL HANDLING - DEBUG
  • df.info()
  • df.head(10)

Help

FA&A 박형원

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

spotlighter-0.0.2.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

spotlighter-0.0.2-py2.py3-none-any.whl (1.1 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file spotlighter-0.0.2.tar.gz.

File metadata

  • Download URL: spotlighter-0.0.2.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for spotlighter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9837ab1191910afb0f89ffe0ebc5a7cba8e96d6b3489f5d1b7f8cd2871e3dff4
MD5 a6735d0c135e9e55ee8bcf3f837f35c8
BLAKE2b-256 e54e329c41ee2ac15512b4f0f31e32f36819e40c2b5a032c8e1a77d91b9fc325

See more details on using hashes here.

File details

Details for the file spotlighter-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for spotlighter-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6618ea2a00b1e822d8232d1a0f28e549e5b83b6ae618f8db865d852a4d013090
MD5 15f5c8ae968a1f832c5e376fa5ffe97e
BLAKE2b-256 05e7f974bc4fb9fd8e8b55adb465392594fbf0188b33e9ba9de9f591b58d5e89

See more details on using hashes here.

Supported by

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