Nizamuddin Siddiqui has Published 2303 Articles

What is the difference between Static class and Singleton instance in C#?

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:32:54

1K+ Views

StaticStatic is a keywordStatic classes can contain only static membersStatic objects are stored in stack.Static cannot implement interfaces, inherit from other classesSingletonSingleton is a design patternSingleton is an object creational pattern with one instance of the classSingleton can implement interfaces, inherit from other classes and it aligns with the OOPS ... Read More

Python - Write multiple files data to master file

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:27:16

589 Views

File handling is an important part of any web application.Python has several functions for creating, reading, updating, and deleting files.To write to an existing file, you must add a parameter to the open()function −"a" − Append − will append to the end of the file"w" − Write − will overwrite any ... Read More

Python - Working with PNG Images using Matplotlib

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:23:24

935 Views

Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack.Example#applying pseudocolor # importing pyplot and image from matplotlib import matplotlib.pyplot as plt import matplotlib.image as img   ... Read More

Python - Working with Pandas and XlsxWriter

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:21:39

361 Views

Python Pandas is a data analysis library. It can read, filter and re-arrange small and large datasets and output them in a range of formats including Excel.Pandas writes Excel files using the XlsxWriter modules.XlsxWriter is a Python module for writing files in the XLSX file format. It can be used to write text, numbers, ... Read More

Python - Working with .docx module

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:16:34

9K+ Views

Word documents contain formatted text wrapped within three object levels. Lowest level- Run objects, Middle level- Paragraph objects and Highest level- Document object.So, we cannot work with these documents using normal text editors. But we can manipulate these word documents in python using the python-docx module.The first step is to ... Read More

Python - Word Embedding using Word2Vec

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:15:04

614 Views

Word Embedding is a language modeling technique used for mapping words to vectors of real numbers. It represents words or phrases in vector space with several dimensions. Word embeddings can be generated using various methods like neural networks, co-occurrence matrix, probabilistic models, etc.Word2Vec consists of models for generating word embedding. These models ... Read More

Python - Window size Adjustment in Kivy

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:13:23

787 Views

Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. Kivy provides you the functionality to write the code for once and run it on different platforms. It is basically used to develop the Android application, but it does ... Read More

Python - Which is faster to initialize lists?

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 08-Aug-2020 08:11:16

230 Views

Python is a very flexible language where a single task can be performed in a number of ways, for example initializing lists can be performed in many ways. However, there are subtle differences in these seemingly similar methods. Python which is popular for its simplicity and readability is equally infamous ... Read More

Python - Ways to merge strings into list

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 14:27:21

248 Views

While developing an application, there come many scenarios when we need to operate on the string and convert it as some mutable data structure, say list.Example# Importing ast library import ast # Initialization of strings str1 ="'Python', 'for', 'fun'" str2 ="'vishesh', 'ved'" str3 ="'Programmer'" # Initialization of list list = [] ... Read More

Python - Ways to iterate tuple list of lists

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 14:25:29

209 Views

List is an important container and used almost in every code of day-day programming as well as web-development, more it is used, more is the requirement to master it and hence knowledge of its operations is necessary.Example# using itertools.ziplongest # import library from itertools import zip_longest   # initialising listoflist ... Read More

Advertisements