Python PowerBi SQL by pdc
pdc-techsolution.bsky.social
Python PowerBi SQL by pdc
@pdc-techsolution.bsky.social
Channel dedicated to Software Dev, Data Analysis, Programming
Sometimes you need a couple of Arrows!!
When we build our Graph sometimes it is useful to explain a variation and correlate the variation with some events that occurred. Let's see one example where we use arrows to pinpoint specific events and root cause of the variation👍
May 7, 2025 at 2:23 AM
Sometimes you need a couple of Comments!!
Comments are really useful to improve the readability of your Graph. Let's see how to add few comments to our Pie Chart
May 4, 2025 at 11:09 PM
Pie Chart in Python

An example of a pie chart using Python
May 2, 2025 at 2:26 AM
Using List comprehensions in Python
List comprehensions are a concise and readable way to create lists. This is a great tool to use to set the X Ticks and Y Ticks of the Chart.
Here an example for the Stacked Area Chart we created previously 👍
May 1, 2025 at 3:03 AM
This time we look at a Stacked Area Chart.

To make a Stacked Area Chart you need to use StackPlot

Here a small example.😀
April 30, 2025 at 3:28 AM
Stacked Bar: Sometimes you have a dataframe but you dont need to see all the columns stacked but just few of them.

In this case you can use to_numpy() method to convert the series or dataframe slice into a numpy array. Then you can stack the column that you need as shown below.👍
April 26, 2025 at 2:26 AM
Example of Stacked Bar Chart in Excel using Python👍
April 23, 2025 at 4:17 AM
Refine Graph with Scale and gridlines.
In this post we take a look at how to refine the scale of the graph using "ylim" on the plt object.
Then we build a small array with the values of ticks to pass to the graph to set the ticks on vertical axis
April 22, 2025 at 2:06 AM
Format the Title=> Let's create a specific line for the title by adding "set_title" to our graph object.
Use "fontdict" to format size,style,weight and color.
Add a "bbox" to format further title's facecolor, the boxstyle as round with pad equal to 0.2 and edgecolor.😉
April 20, 2025 at 10:01 PM
Pandas in Microsoft Excel. Using Python in Excel is something very useful when you are doing data analysis

Here a simple bar chat:

First let's create a dataframe in Excel called "t"

Then we can generate a bar chart with the code👍
April 19, 2025 at 7:04 PM