Spikes package in Python
spikes is a package in Python, a command-line utility used for displaying bar graphs on the terminal, therefore can be used for quick analysis
Installation: Run the following pip command on the terminal:
pip install spikes
It’s recommend to run all program on terminal of IDE as PowerShell doesn’t support few output characters
Syntax: spike [space separated data]
Example 1: To obtain a simple bar graph of whole numbers on the terminal
spike 10 20 30 40 50 60
Example 2: Data can be also decimal numbers.
spike 0 1 2 0.3 0.4 0.5 6
Example 3: If data is negative, (compulsory to have 1st value as positive value), they will be considered as zero and the positive values of graph will be shown
spike 2 -7 -9 spike -2 -7 9
Example 4: For vertical data use -1 flag at the beginning.
spike -1 5 10 17 29
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course