Posts

Showing posts with the label python

Regular Expression in Python

Image
In the early days of computing, text processing and text pattern matching was a huge challenge. There were no standards or pattern matching characters designed at that time. Matching text patterns in a bulk-sized file was an extremely difficult task at that time. Until in the 1950s, an American mathematician named  Stephen Kleene  invented  Regular Expressions  which entirely revolutionized text processing, pattern matching, and bulk data manipulation. The regular expression meta character called  Kleene Star (*) is named after him.   What is the Python Regular Expression? A Python regular expression is a sequence of meta characters, that defines a search pattern. We use these patterns in a string-searching algorithm to “find” or “find and replace” on strings. They are strings in which “what to match” is defined or written. The term “regular expressions” is frequently shortened to “regex” at some places. In this, we will learn the basi...

INSTANCE BASED MACHINE LEARNING

Image
What is Machine Learning? Machine learning is an application of artificial intelligence that generates programs for computer to access data and analyze it. Based on this analysis, the system automatically learns and improvises itself. Machine Learning is the study of certain set of rules using statistical and logical approach to solve a particular problem. These set of rules are called Machine Learning Algorithms and are used in machine learning for continuous development and improvement of specific task. Main aim of machine learning is to make machines learn automatically and work without human interference and assistance.  Machine Learning is an approach to make life easier for human beings by reducing their efforts. Face Recognition, virtual personal assistants like amazon’s alexa and Google home, filtering spam emails and malwares, online customer support, search engine result refining, social media services are a few applications of machine learning. Types of ...

Features of Python

Image
What is Python ? Python is a programming language. Which can be used in any operating system, Python is having wide range of application from web development, scientific and mathematical computing to graphical interface. Python was discovered by Guido Van Rossum in 1980s and it was first announced in 1994 , it was named Python from the series of comedy Monty Python’s Flying Circus. There are many features of Python such as : Easy to learn Free and open source Portable High level Interpreted language Large standard library to solve common task Structured language Object oriented Easy to learn : Python is easy to learn as compared to other language like Java , C, C++, Javascript it is very easy to code in Python. Free and open source : Python is open source language, which means its source code is available to everyone, anyone can download it, change it, or use it. Python is free to download from its official website www.python.org Portable : There is no need ...

Data Analytic Matplotlib (Guide)

Image
Data visualization is an important part of Data Analysis . Matplotlib is the most popular data visualization module in python . Other module like Tensorflow uses matplotlib for visualization. Creating visualization refers to creating stuffs. Matplotlib is designed to be as usable as MATLAB, with the ability to use Python, and the advantage of being free and open-source. Matplotlib is designed with the philosophy that you should be able to create simple plots with just a few commands, or just one! If you want to see a histogram of your data, you shouldn’t need to instantiate objects, call methods, set properties, and so on; it should just work. History of Matplotlib: Matplotlib was originally written by  John D. Hunter , has an active development community, and is distributed under a  BSD-style license . Michael Droettboom was nominated as matplotlib’s lead developer shortly before John Hunter’s death in August 2012, and further joined by Thomas Caswell. Ma...

Entry widgets with Python

Image
Entry widgets are the basic widgets of Tkinter used to get input, i.e. text strings, from the user of an application. This widget allows the user to enter a single line of text. If the user enters a string, which is longer than the available display space of the widget, the content will be scrolled. This means that the string cannot be seen in its entirety. The arrow keys can be used to move to the invisible parts of the string. If you want to enter multiple lines of text, you have to use the text widget. An entry widget is also limited to single font. The syntax of an entry widget looks like this: w = Entry(master, option, ... ) "master" represents the parent window, where the entry widget should be placed. Like other widgets, it's possible to further influence the rendering of the widget by using options. The comma separated list of options can be empty. The following simple example creates an application with two entry fields. One for entering a last name...