Skip to main content

predictive analysis

Project description

Lightning Node Prediction Analysis

This package contains useful functionalities to aid in analyzing lightning transactions.

Install

pip install lightning_node_prediction

How to use

Provide a path to the lightning transactions. Kindly note that the file should be in a CSV format

light = LnPreds('path to csv file')

Plot a chart showing the number of merchants you want to analyze the trendlines by using the num_merch parameter. You can also specify the number of columns you want to display the merchants by using the cols parameter. Merchants are sorted based on their overall transactions amounts with the merchant with the hightest transactions in the first place.

light.plt_yrs_trnd(num_merch=4,cols=2)

You can also zoom-in on a particular merchant by specifying a merchant and a year using the merch_id and yr parameters. Moreover, you can also specify the number of months and the columns for the display using the num_mnths and cols parameters.

merchant_id=10
yr='2019'
light.plt_wks_trnd(merch_id=merchant_id,yr=yr,num_mnths=4,cols=2)

You can also determine the number of outputs and inputs for each day based on the merchant,year,number of months and the column display. Use the merch_id parameter for the merchant id. yr for the year of interest and num_mnths for the number of months needed. cols is used for the display output of your charts

light.plt_wks_stack(merch_id=merchant_id,yr=yr,num_mnths=4,cols=2)

The plt_dy_mnth method takes as input the start year:strt_yr, Number of years:numb_yrs, start month:strt_mnth and number of months:numb_mnths. This methods plots a comparative balance for each year based on the selected months

light.plt_dy_mnth(strt_yr=1,numb_yrs=3,strt_mnth=1,numb_mnths=3)

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

lightning_node_prediction-0.0.4.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

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

lightning_node_prediction-0.0.4-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file lightning_node_prediction-0.0.4.tar.gz.

File metadata

File hashes

Hashes for lightning_node_prediction-0.0.4.tar.gz
Algorithm Hash digest
SHA256 223e010125694fe463a08033b83dc1f443d84afac80e5a38c66b9ff8208cfe0a
MD5 84cbf79251a3560697ae2d3f95fdbfbd
BLAKE2b-256 2a7c17ae9c0adb8c00be8a3349b5a2faed03ceacb3c8f2a0f25a496aca463b86

See more details on using hashes here.

File details

Details for the file lightning_node_prediction-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for lightning_node_prediction-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 eaaa90a38ed26d43412636448fa1b035bd386b103f8ac7b37ff82b7db8102aa0
MD5 4d85b01fbf2c64b228895e9cce935f36
BLAKE2b-256 46ce31f3435b1196891b14c4e1d8e917e04b519d7d5e48895497dda3df9592b4

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