Pradeep Elance has Published 298 Articles

How to Create a New Ext4 File System in Linux?

Pradeep Elance

Pradeep Elance

Updated on 25-Feb-2020 06:14:54

6K+ Views

The hard disk in a computer is formatted with specific file system so that the operating system can read and write into it. For UNIX based systems we have various type of file systems. In this article we will see how to format a new partition in hard disk with ... Read More

How to Change or Set System Locales in Linux

Pradeep Elance

Pradeep Elance

Updated on 25-Feb-2020 06:00:00

3K+ Views

We often need to customise the operating system to become useful to our own preferences like the language we want to use the time zone we are in the type of currency which would become the default currency in the OS etc. In this article we will see how to ... Read More

Display Command Output or File Contents in Column Format in Linux

Pradeep Elance

Pradeep Elance

Updated on 25-Feb-2020 05:58:07

752 Views

Sometimes there may be too many columns crammed into a single file. That makes it difficult to read the content of the file and point out which data belongs to which column. In order to have a better view, we ca use certain commands that will allocate space between the ... Read More

Python - Get items in sorted order from given dictionary

Pradeep Elance

Pradeep Elance

Updated on 18-Feb-2020 12:09:13

240 Views

The Python dictionary has key and value pairs. In some situation we will need the items of the dictionary to be sorted according to the keys. In this article we'll see the different ways to get a sorted output from the items in the dictionary.Using Operator ModuleThe Operator module has ... Read More

Collapsible Pane in Tkinter Python

Pradeep Elance

Pradeep Elance

Updated on 18-Feb-2020 12:03:15

1K+ Views

Tkinter is the GUI building library of python. In this article we will see how we can create a collapsible pane. They are usefult when we have some large amount of data to be displayed over a GUI canvas but we do not want to be displayed always. It is ... Read More

Binning method for data smoothing in Python

Pradeep Elance

Pradeep Elance

Updated on 18-Feb-2020 11:57:55

1K+ Views

Many times we use a method called data smoothing to make the data proper and qualitative for statistical analysis. During the smoking process we define a range also called bin and any data value within the range is made to fit into the bin. This is called the binning method. ... Read More

ASCII art using Python pyfiglet module

Pradeep Elance

Pradeep Elance

Updated on 18-Feb-2020 11:51:29

2K+ Views

The ASCII text can be used to display many stylish texts by using the module pyfiglet. After installing this module we can use it to control the font that can be used to display the result. In the below program we see various results by choosing various font types.Example# import ... Read More

Add one Python string to another

Pradeep Elance

Pradeep Elance

Updated on 18-Feb-2020 11:28:35

439 Views

By adding strings in python we just concatenate them to get a new string. This is useful in many scenarios like text analytics etc. Below are the two approaches we consider for this task.Using += OperatorThe + operator can be used for strings in a similar was as it is ... Read More

Add list elements with a multi-list based on index in Python

Pradeep Elance

Pradeep Elance

Updated on 18-Feb-2020 11:24:15

656 Views

Lists can be nested. Which means we have smaller lists as elements inside a bigger list. In this article we solve the challenge of adding the elements of a simple list to the elements of a nested list. If the length of the lists are different then the length of ... Read More

Add trailing Zeros to a Python string

Pradeep Elance

Pradeep Elance

Updated on 14-Feb-2020 07:14:37

4K+ Views

As part of data processing activity we sometimes need to append one string with another. In this article we will see how to append dynamic number of zeros to a given string. This can be done by using various string functions as shown in the programs below.Using ljust and lenPython ... Read More

Advertisements