Pradeep Elance has Published 417 Articles

HyperText Markup Language support in Python?

Pradeep Elance

Pradeep Elance

Updated on 12-Jan-2021 13:08:28

274 Views

Python has the capability to process the HTML files through the HTMLParser class in the html.parser module. It can detect the nature of the HTML tags their position and many other properties of the tags. It has functions which can also identify and fetch the data present in an HTML ... Read More

Python Get the real time currency exchange rate?

Pradeep Elance

Pradeep Elance

Updated on 12-Jan-2021 13:04:42

12K+ Views

Python is very good at handling API calls. In this article we will see how we can handle the API calls for currency exchange rates in real time as well as historical.Using forex-pythonThis module provides the most direct way of getting the currency conversion rates. It has functions and parameters ... Read More

Python - Add Label to kivy window

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 11:25:51

683 Views

Kivy is an pen 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 add labels to the windows created ... Read More

Python - Combine two lists by maintaining duplicates in first list

Pradeep Elance

Pradeep Elance

Updated on 28-Dec-2020 11:22:16

410 Views

In data analysis using python we may come across situation when two lists need to be merged. But it may be a challenge to handle the duplicate elements present in those lists. In this article we will see how to combine two lists by maintain all the elements form the ... Read More

Python - Convert 1D list to 2D list of variable length

Pradeep Elance

Pradeep Elance

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

3K+ Views

A list in python is normally a 1D list where the elements are listed one after another. But in a 2D list we have list nested inside the outer list. In this article we will see how to create a 2D list from a given 1D list. We also supply ... Read More

Python - Convert a list of lists into tree-like dict

Pradeep Elance

Pradeep Elance

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

1K+ Views

Given a nested list we want to convert it to a dictionary whose elements can be considered as part of a tree data structure. In this article we will see the two approaches to convert a nested list into to add dictionary whose elements represent a tree like data structure.Using ... Read More

Python - Convert flattened dictionary into nested dictionary

Pradeep Elance

Pradeep Elance

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

708 Views

Python dictionaries have keys and values. If we have two or more dictionaries to be merged a nested dictionary, then we can take the below approaches. Here year the dictionaries are given along with the new keys that will become a key in the nested dictionary.Assigning keysIn this approach we ... Read More

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

333 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

379 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

Advertisements