Nizamuddin Siddiqui has Published 2307 Articles

Python - Using variable outside and inside the class and method

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 13:21:56

2K+ Views

Python is an object-oriented programming language. Almost everything in Python is an object, with its properties and methods. A Class is like an object constructor, or a "blueprint" for creating objects.The variables that are defined outside the class can be accessed by any class or any methods in the class ... Read More

Python - Using 2D arrays/lists the right way

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 13:17:51

113 Views

Python provides many ways to create 2-dimensional lists/arrays. However, one must know the differences between these ways because they can create complications in code that can be very difficult to trace out.Example Live Demorows, cols = (5, 5) arr = [[0]*cols]*rows #lets change the first element of the 1st row to ... Read More

Python - Prefix sum list

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 13:16:17

731 Views

A list is a collection which is ordered and changeable. In Python lists are written with square brackets. You access the list items by referring to the index number. Negative indexing means beginning from the end,  -1 refers to the last item. You can specify a range of indexes by specifying ... Read More

Python - Plotting scatter charts in excel sheet using XlsxWriter module

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 13:09:39

262 Views

A scatter plot is a type of plot or mathematical diagram using Cartesian coordinates to display values for typically two variables for a set of data. If the points are coded, one additional variable can be displayed.Example# import xlsxwriter module import xlsxwriter # Workbook() takes one, non-optional, argument which is ... Read More

Python - Plotting Radar charts in excel sheet using XlsxWriter module

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 13:07:53

156 Views

A radar chart is a graphical method of displaying multivariate data in the form of a two-dimensional chart of three or more quantitative variables represented on axes starting from the same point.Example# import xlsxwriter module import xlsxwriter # Workbook() takes one, non-optional, argument which is the filename #that we want ... Read More

Python - Plotting Pie charts in excel sheet using XlsxWriter module

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 13:05:29

285 Views

A pie chart is a circular statistical graphic, which is divided into slices to illustrate numerical proportion. In a pie chart, the arc length of each slice, is proportional to the quantity it represents.Example# import xlsxwriter module import xlsxwriter # Workbook() takes one, non-optional, argument which is the filename #that ... Read More

Python - Plotting Line charts in excel sheet using XlsxWriter module

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 13:03:47

245 Views

A line chart is a graphical representation of an asset's historical price action that connects a series of data points with a continuous line. This is the most basic type of chart used in finance and typically only depicts a security's closing prices over time.Example# import xlsxwriter module import xlsxwriter # Workbook() takes one, non-optional, ... Read More

Python - Plotting Doughnut charts in excel sheet using XlsxWriter module

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 13:02:23

154 Views

Donut Chart (also known as Doughnut chart) is a variation on a Pie chart except it has a round hole in the center which makes it look like a donut, hence the name. This empty space can be used to display additional data.Example# import xlsxwriter module import xlsxwriter # Workbook() takes one, non-optional, argument which ... Read More

Python - Plotting Different types of style charts in excel sheet using XlsxWriter module

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 12:59:27

177 Views

XlsxWriter is a Python library using which one can perform multiple operations on excel files like creating, writing, arithmetic operations and plotting graphs.Example# import xlsxwriter module import xlsxwriter # Workbook() takes one, non-optional, argument which is the filename #that we want to create. workbook = xlsxwriter.Workbook('chart_styles.xlsx') #Show the styles for column ... Read More

Python - Plotting Combined charts in excel sheet using XlsxWriter module

Nizamuddin Siddiqui

Nizamuddin Siddiqui

Updated on 06-Aug-2020 12:54:56

259 Views

lsxWriter is a Python library using which one can perform multiple operations on excel files like creating, writing, arithmetic operations and plotting graphs.Example# import xlsxwriter module import xlsxwriter # Workbook() takes one, non-optional, argument which is the filename #that we want to create. workbook = xlsxwriter.Workbook('chart_combined.xlsx') # The workbook object is ... Read More

Advertisements