Python Articles

Page 827 of 855

Installing Python on Linux

Mohd Mohtashim
Mohd Mohtashim
Updated on 24-Jan-2020 653 Views

Python distribution is available for a wide variety of platforms. You need to download only the binary code applicable for your platform and install Python.If the binary code for your platform is not available, you need a C compiler to compile the source code manually. Compiling the source code offers more flexibility in terms of choice of features that you require in your installation.Here are the simple steps to install Python on Unix/Linux machine.Open a Web browser and go to https://www.python.org/downloads/Follow the link to download zipped source code available for Unix/Linux.Download and extract files.Editing the Modules/Setup file if you want to customize ...

Read More

Why You Should Learn Python Programming?

Mohd Mohtashim
Mohd Mohtashim
Updated on 24-Jan-2020 338 Views

Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages.Python is a MUST for students and working professionals to become a great Software Engineer specially when they are working in Web Development Domain. I will list down some of the key advantages of learning Python −Python is Interpreted − Python is processed at runtime by the interpreter. You do not need to compile your program before executing it. This is similar to PERL ...

Read More

10 Reasons why you should Learn Python

Sharon Christine
Sharon Christine
Updated on 23-Jan-2020 2K+ Views

Python is a totally free language to download, use, and code. Its commands are mostly in simple English. This makes it easy to remember and write commands. The code is readable and with a little knowledge, a developer can learn many things just by looking at the code.It has standard libraries that offer a lot of functionalities which lets you implement complex applications with ease. Python was designed with the newbies in mind. The use of white space and common expressions has eliminated the need for tedious variable declarations and ugly braces.Your First Steps in ProgrammingPython can be your starting ...

Read More

How to Test your Broadband Speed from Linux Terminal

karthikeya Boyini
karthikeya Boyini
Updated on 20-Jan-2020 346 Views

To install speed test CLI command line, it should require Python ppi. Use the following command to install Python ppi .$ sudo apt-get install python-pipThe sample output should be like this –Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required:    libbs2b0 libopusfile0 libqmmp-misc libqmmpui0 libsidplayfp    linux-headers-4.2.0-27 linux-headers-4.2.0-27-generic    linux-image-4.2.0-27-generic linux-image-extra-4.2.0-27-generic    linux-signed-image-4.2.0-27-generic php7.0-opcache Use 'apt-get autoremove' to remove them. The following extra packages will be installed:    python-chardet-whl python-colorama python-colorama-whl python-distlib    python-distlib-whl python-html5lib python-html5lib-whl python-pip-whl    python-requests-whl python-setuptools python-setuptools-whl python-six-whl    python-urllib3-whl python-wheel Suggested packages:    python-genshi Recommended packages: ...

Read More

How to Install and Use Command Line Cheat Sheets on Ubuntu

Sharon Christine
Sharon Christine
Updated on 20-Jan-2020 436 Views

Cheat is a command line primarily based on Python software that lets in system administrators to view and save helpful cheat sheets. It retrieves simple-text examples of a delegated command which will remind the user of alternatives, arguments, or commonplace makes use of. Cheat is used for “commands which you use frequently, however now not frequently sufficient to consider”Installing CheatBefore installing Cheat, we need to make sure that everything’s up to date on the system as shown in the below command –$ sudo apt-get update && sudo apt-get upgradeInstalling Cheat is best done with the Python package manager Pip. To ...

Read More

Fish – A Smart and User-Friendly Interactive Shell for Linux

karthikeya Boyini
karthikeya Boyini
Updated on 20-Jan-2020 261 Views

The Pleasant Interactive Shell which is called and abbreviated as FISH is a shell for UNIX and UNIX-like operating systems. It is a unique and innovative command line environment with a number of priceless improvements. Fish is designed to work with any other shell like bash or ZSH. Unlike different shells which disables more than a few elements with the aid of default to save process resource, FISH maintains all of them enabled by means of default in an effort to make most out of it.FeaturesIt is a User-friendly and interactive shellIt has so many powerful featuresInbuilt Web-based configurationIt supported ...

Read More

Rainbow Stream – An Advanced Command-line Twitter Client for Linux

Sharon Christine
Sharon Christine
Updated on 17-Jan-2020 431 Views

Rainbow Stream is a free and open source Twitter-consumer for Linux command-line, released under MIT License. It is competent of showing Rea ltime tweet stream, compose a tweet, search, favorite, etc.It is written in Python and built on high of Twitter API and Python Twitter Tool. To run this application in your console you must have installed python and pip version 2.7.x or 3.x.FeaturesIt is a free and open source twitter-client for Linux command-line.It is capable of rendering twitter image in Terminal.It supports Proxy.It supports interactive mode.Theme customization is implemented.It has the capability of showing real-time twitter stream.You can tweet, ...

Read More

after method in Python Tkinter

Pradeep Elance
Pradeep Elance
Updated on 02-Jan-2020 3K+ Views

Tkinter is a python library to make GUIs. It has many built in methods to create and manipulate GUI windows and other widgets to show the data and GUI events. In this article we will see how the after method is used in a Tkinter GUI.Syntax.after(delay, FuncName=FuncName) This method calls the function FuncName after the given delay in milisecondDisplaying WidgetHere we make a frame to display a list of words randomly. We use the random library along with the after method to call a function displaying a given list of text in a random manner.Exampleimport random from tkinter import * ...

Read More

Boolean Indexing in Pandas

Hafeezul Kareem
Hafeezul Kareem
Updated on 02-Jan-2020 2K+ Views

Boolean indexing helps us to select the data from the DataFrames using a boolean vector. We need a DataFrame with a boolean index to use the boolean indexing. Let's see how to achieve the boolean indexing.Create a dictionary of data.Convert it into a DataFrame object with a boolean index as a vector.Now, access the data using boolean indexing.See the example below to get an idea.Exampleimport pandas as pd # data data = {    'Name': ['Hafeez', 'Srikanth', 'Rakesh'],    'Age': [19, 20, 19] } # creating a DataFrame with boolean index vector data_frame = pd.DataFrame(data, index = [True, False, True]) ...

Read More

Change data type of given numpy array in Python

Hafeezul Kareem
Hafeezul Kareem
Updated on 02-Jan-2020 12K+ Views

We have a method called astype(data_type) to change the data type of a numpy array. If we have a numpy array of type float64, then we can change it to int32 by giving the data type to the astype() method of numpy array.We can check the type of numpy array using the dtype class. Let's check the data type of sample numpy array.Example# importing numpy library import numpy as np # creating numpy array array = np.array([1, 2, 3, 4, 5]) # printing the data type of the numpy array print(array.dtype)OutputIf you run the above code, you will get the ...

Read More
Showing 8261–8270 of 8,547 articles
« Prev 1 825 826 827 828 829 855 Next »
Advertisements