Pradeep Elance has Published 446 Articles

Python - Button Action in Kivy

Pradeep Elance

Pradeep Elance

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

427 Views

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

484 Views

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

485 Views

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

4K+ Views

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

3K+ Views

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

Get last element of each sublist in Python

Pradeep Elance

Pradeep Elance

Updated on 09-Sep-2020 12:33:34

2K+ Views

A list in python can also contain lists inside it as elements. These nested lists are called sublists. In this article we will solve the challenge of retrieving only the last element of each sublist in a given list.Using for loopIt is a very simple approach in which we loop ... Read More

Get first element of each sublist in Python

Pradeep Elance

Pradeep Elance

Updated on 09-Sep-2020 12:32:15

4K+ Views

A list in python can also contain lists inside it as elements. These nested lists are called sublists. In this article we will solve the challenge of retrieving only the first element of each sublist in a given list.Using for loopIt is a very simple approach in which we loop ... Read More

Get first and last elements of a list in Python

Pradeep Elance

Pradeep Elance

Updated on 09-Sep-2020 12:26:46

12K+ Views

There may be situation when you need to get the first and last element of the list. The tricky part here is you have to keep track of the length of the list while finding out these elements from the lists. Below are the approaches which we can use to ... Read More

Get dictionary keys as a list in Python

Pradeep Elance

Pradeep Elance

Updated on 09-Sep-2020 12:24:32

312 Views

For many programs getting the keys from a dictionary is important input to be used by some other program which rely on this dictionary. In this article we are going to see how to capture the keys as a list.Using dict.keysThis is a very direct method of accessing the keys. ... Read More

Count unique sublists within list in Python

Pradeep Elance

Pradeep Elance

Updated on 09-Sep-2020 12:21:49

386 Views

A Python list can also contain sublist. A sublist itself is a list nested within a bigger list. In this article we will see how to count the number of unique sublists within a given list.Using CounterCounter is a subclass of Dictionary and used to keep track of elements and ... Read More

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