Pradeep Elance has Published 498 Articles

Python - Display images with PyGame

Pradeep Elance

Pradeep Elance

Updated on 25-Jan-2021 07:29:48

Pygame is a multimedia library for Python for making games and multimedia applications. In this article we will see how to use the pygame module to paint a picture on the screen taking into consideration, its height, width and position in the pygame window.In the below program we initialize the ... Read More

Python - Delete rows/columns from DataFrame using Pandas.drop()

Pradeep Elance

Pradeep Elance

Updated on 25-Jan-2021 07:29:31

Pandas is one of the most popular python library for data analysis and data wrangling. In this article we will see how we can create a pandas dataframe and then delete some selective rows ort columns from this data frame.Deleting roewsIn the below example we have the iris.csv file which ... Read More

Python - Data visualization using Bokeh

Pradeep Elance

Pradeep Elance

Updated on 25-Jan-2021 07:25:18

Bokeh is an python data visualization library for web browsers. It czncreate elegant, concise construction of versatile graphics. It is used to quickly and easily make interactive plots, dashboards, and data applications. In this article we will see how we can create various types of basic graphs using Bokeh.Plotting LinesWe ... Read More

Python - Create Test DataSets using Sklearn

Pradeep Elance

Pradeep Elance

Updated on 25-Jan-2021 07:19:19

The Sklearn python library does provide sample data sets which can be used tocreate various graph plots. The usefulness of these datasets is in creating sample graphs and charts and predicting the behavior of the graph as the values changes. Also you can work on other parameters like deciding on ... Read More

Find maximum length sub-list in a nested list in Python

Pradeep Elance

Pradeep Elance

Updated on 25-Jan-2021 07:18:06

we often deal with nested lists when doing data analysis in python. In this article, we will see how to find out the longest list among the elements in a nested list and then print this along with its length.Using lambda and mapWe declare a nested list and give it ... Read More

Creating a Proxy Webserver in Python

Pradeep Elance

Pradeep Elance

Updated on 25-Jan-2021 07:14:41

A proxy server sits in between the client and the actual server. It receives the requests from the client, send it to the actual server, and on receiving the response from the actual server it sends the response back to the client. There are many reasons to use the proxy ... Read More

Python Generate QR Code using pyqrcode module?

Pradeep Elance

Pradeep Elance

Updated on 12-Jan-2021 13:46:33

A QR code consists of black squares arranged in a square grid on a white background, which can be read by an imaging device such as a camera. It is widely used for many commercial tracking applications and payment and website login etc. for various applications aimed at mobile-phone users. ... Read More

Python Front and rear range deletion in a list?

Pradeep Elance

Pradeep Elance

Updated on 12-Jan-2021 13:44:05

Using list slicingIn this approach we use slicing from both the front and rear of the list. The result is stored into a new list. The number of elements to be sliced can be a variable.Example Live DemolistA = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] # Given list print("Given ... Read More

Python Float Layout in Kivy?

Pradeep Elance

Pradeep Elance

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

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 FloatLayout widget to create ... Read More

Python file parameter in print()?

Pradeep Elance

Pradeep Elance

Updated on 12-Jan-2021 13:36:23

The regular use of the print() function is to display text either in the command-line or in the interactive interpreter. But the same function can also write into a file or an output stream.Printing to fileIn the example we can open a file with a new filename in write mode ... Read More

Advertisements