Python Tutorial 12: Data conversion in Python

Data conversion in Python, can be done implicitly (implicit data conversion) and explicitly (explicit data conversion) for primitive and non-primitive data structures. Python Implicit Data Conversion Implicit data conversion or coercion is something that will happen automatically in python during compilation or run time. It is handled by Python directly without losing any information. For … Read more

Python Tutorial 24 : Descriptive statistics in Python

Python support following Descriptive statistics  function Averages and measures of the central location mean() Arithmetic mean (“average”) of data. harmonic_mean() Harmonic mean of data. median() Median (middle value) of data. median_low() Low median of data. median_high() High median of data. median_grouped() Median, or 50th percentile, of grouped data. mode() Mode (most common value) of discrete data. … Read more

Splunk Tutorial 05: How to upload data into Splunk

This tutorial will illustrate how to get data into Splunk.   What kind of Data can Splunk handle? Sky is the limit! It can handle data generated from kind of everywhere including (but not limit to): Virtual Machine Pysical Machnies Servers IoT Communications devices Log Configurations  Scripts Database Tickets Alerts Self driving cars Sensors etc … Read more

Python Tutorial 22 : How to return a value from a function

As mentioned previously, the “Def” statement defines a function. So how to return a value from a function?   We can use the return statement to return a value from a function. For example: [vtftable cols=”{0}0:fff2cc;{/}”] def dummyfunction (i):{;n}    return i;nn; [/vtftable] In other languages, you may have to define the datatype of the … Read more

Python Tutorial 20 : How to split every single words from a sentence in Python using split function

How to split every single words from a sentence in Python? We can use the Split function Suppose we want to split following paragraphs from the internet (www.traveller.com.au) “Not everyone travels to get outside their comfort zone. Not everyone wants to challenge themselves by doing something new and intimidating every time they go on holidays, … Read more

Python Tutorial 18: useful Window Command Prompt function for python programming

From our last tutorial, I have illustrated how to use command prompt to execute a python program. Following table list command prompt functions may be useful for Python programming:

CommandDescription
CdThe cd command is the shorthand version of the chdir command. The cd command is available in all versions of Windows, as well as in MS-DOS.
ChdirThe chdir command is used to display the drive letter and folder that you are currently in. Chdir can also be used to change the drive and/or directory that you want to work in. The chdir command is available in all versions of Windows, as well as in MS-DOS.
DelThe del command is used to delete one or more files. The del command is available in all versions of Windows, as well as in MS-DOS. The del command is the same as the erase command.
DirThe dir command is used to display a list of files and folders contained inside the folder that you are currently working in. The dir command also displays other important information like the hard drive's serial number, the total number of files listed, their combined size, the total amount of free space left on the drive, and more. The dir command is available in all versions of Windows, as well as in MS-DOS.
ExitThe exit command is used to end the cmd.exe (Windows) or command.com (MS-DOS) session that you're currently working in. The exit command is available in all versions of Windows, as well as in MS-DOS.

Read more