Pradeep Elance has Published 498 Articles

Namespaces and Scope in Python

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 11:07:13

In python we deal with variables, functions, libraries and modules etc. There is a chance the name of the variable you are going to use is already existing as name of another variable or as the name of another function or another method. In such scenario, we need to learn ... Read More

Generic output formatting in Python

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 11:05:20

When printing the results of processing some data in python we may need to output them in certain appealing format or with some mathematical precision. In this article we will see what are the different options using which we can output the results.Using formatIn this approach we use the in-built ... Read More

Encode and decode XDR data using Python xdrlib

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 11:04:10

Encoders and decoders for the External Data Representation (XDR). When we transport data between different external sources, this is the commonly used format that is used. It useful for creation and transfer of complex data structures. XDR provides a service associated with the OSI Presentation Layer.In the below program we ... Read More

Encode and decode uuencode files using Python

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 10:57:25

It is a common requirement during file transfers to encode and decode them for various reasons like encryption, compression or just because they are going to be processed by different OS or file reading programs. The uuencode module helps us on both encoding and decoding files as shown below.Encode the ... Read More

Encode and decode MIME quoted-printable data using Python

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 10:55:16

Many times we need to deal with data which not always has the regular ASCII characters. For example, an email in a different language other than English. Python has mechanism to deal with such characters by using MIME (Multipurpose Internet Mail Extensions) based module. In this article we will see ... Read More

Python - Button Action in Kivy

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 10:53:23

Kivy is an open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. It is used to develop the Android application, as well as Desktops applications. In this article we will see how to use events when a button is ... Read More

Python - BoxLayout widget in Kivy

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 10:51:13

Kivy is an open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. It is used to develop the Android application, as well as Desktops applications. In this article we will see how to use the BoxLayout widget to create ... Read More

Python - AnchorLayout in Kivy

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 10:47:44

Kivy is an open source Python library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. It is used to develop the Android application, as well as Desktops applications. In this article we will see how to use the anchor layout positioning.Using AnchorLayouts ... Read More

Python - Convert list of nested dictionary into Pandas Dataframe

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 10:39:57

Many times python will receive data from various sources which can be in different formats like csv, JSON etc which can be converted to python list or dictionaries etc. But to apply the calculations or analysis using packages like pandas, we need to convert this data into a dataframes. In ... Read More

Get unique values from a list in Python

Pradeep Elance

Pradeep Elance

Updated on 09-Sep-2020 12:36:28

A list in python is a number of items placed with in [] which may or may not have same data types. It can also contain duplicates. In this article we will see how to extract only the unique values from a list.With append()In this approach we will first create ... Read More

Previous 1 ... 3 4 5 6 7 ... 50 Next
Advertisements