Pradeep Elance has Published 446 Articles

Python - Combine two dictionary adding values for common keys

Pradeep Elance

Pradeep Elance

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

2K+ Views

When analyzing data with python we come across situations when we have to merge two dictionaries in such a way that we add the values of those elements whose keys have equal values. In this article we will see such two dictionaries getting added.With For loop and | OperatorIn this ... Read More

Python - Check if k occurs atleast n times in a list

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 11:15:57

231 Views

Many times during data analysis using lists we come across a situation where we need to find out if a given element is present at least N Times in the given list. For example if 5 is present at least three times in the list or not. In this article ... Read More

Pygorithm module in Python

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 11:14:03

191 Views

The Pygorithm module is an educational module containing the implementation of various algorithms. The best use of this module is to get the code of an algorithm implemented using python. But it can also be used for actual programming where we can apply the various algorithms to a given data ... Read More

OS Path module in Python

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 11:11:29

8K+ Views

The os.path module is a very extensively used module that is handy when processing files from different places in the system. It is used for different purposes such as for merging, normalizing and retrieving path names in python . All of these functions accept either only bytes or only string ... Read More

Oracle Database Connection in Python

Pradeep Elance

Pradeep Elance

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

2K+ Views

Python can connect to oracle using a python package called cx_Oracle. Oracle is one of the famous and widely used database and python’s data processing features are leverages well using this connectivity. In this article we will see how we can connect to oracle database and query the DB.Installing cx_OracleWe ... Read More

The netrc file processing using Python

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 11:08:34

840 Views

The netrc class in python is used to read the data from the .netrc file presnt in unix systems in user’s home firectory. These are hidden files containing user’s login credential details. This is helpful for tool slike ftp, curl etc to successfully read the ,netrc file and use it ... Read More

Namespaces and Scope in Python

Pradeep Elance

Pradeep Elance

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

2K+ Views

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

Encode and decode XDR data using Python xdrlib

Pradeep Elance

Pradeep Elance

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

358 Views

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

988 Views

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

1K+ Views

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

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