Data Visualization with Python_Part02.pdf

Full Transcript

IBM Data Visualization with Python Eng. Mohamed Soliman 8/2/2024 1 Module II Basic and Specialized Visualization Tools 8/2/2024 2 Module II Basic and Specialized Visualization Tools Histograms 8/2/2024 3 8/2/2...

IBM Data Visualization with Python Eng. Mohamed Soliman 8/2/2024 1 Module II Basic and Specialized Visualization Tools 8/2/2024 2 Module II Basic and Specialized Visualization Tools Histograms 8/2/2024 3 8/2/2024 4 8/2/2024 5 8/2/2024 6 8/2/2024 7 Creating Histograms with Matplotlib Using Matplotlib Import Matplotlib and its scripting interface -> plt.hist( ) Call plot function with kind=hist for histogram -> df.plot(kind=‘hist’) Aligning Bins with NumPy Import NumPy library for histogram function. Compute bin edges and frequency for aligned bins. 8/2/2024 8 Module II Basic and Specialized Visualization Tools Bar Charts 8/2/2024 9 8/2/2024 10 8/2/2024 11 8/2/2024 12 Module II Basic and Specialized Visualization Tools Pie Charts 8/2/2024 13 8/2/2024 14 8/2/2024 15 8/2/2024 16 8/2/2024 17 8/2/2024 18 8/2/2024 19 8/2/2024 20 Module II Basic and Specialized Visualization Tools Box plot 8/2/2024 21 Box plot 8/2/2024 22 Generating a box plot 8/2/2024 23 Box plot Recap A box plot is a way of statistically representing given data distribution through five main dimensions. The five main dimensions are minimum, first quartile, median, third quartile, and maximum. You can create a box plot using Matplotlib. 8/2/2024 24 Module II Basic and Specialized Visualization Tools Scatter Plots 8/2/2024 25 8/2/2024 26 8/2/2024 27 8/2/2024 28 8/2/2024 29 8/2/2024 30 8/2/2024 31 Module II Basic and Specialized Visualization Tools Plotting Directly with Matplotlib 8/2/2024 32 8/2/2024 33 8/2/2024 34 8/2/2024 35 8/2/2024 36 8/2/2024 37 Bar plot and Pie 8/2/2024 38 8/2/2024 39 8/2/2024 40 Data storytelling and data visualization Data storytelling Is the art of storytelling Creates a narrative around the data Data visualization Is an important aspect of data storytelling Creates engaging visuals 8/2/2024 41 Q&A 8/2/2024 Q&A 42 Thank you! 8/2/2024 43

Use Quizgecko on...
Browser
Browser