CBSE CS and IP

CBSE Class 11 & 12 Computer Science and Informatics Practices Python Materials, Video Lecture

Data Visualization (3 Marks Questions)


  1. Draw the chart for the following code snippet:
    import matplotlib.pyplot as plt    
    con = [23.4,25.6,25,48,78]
    Zones = ['E','W','N','S','C']
    plt.pie(con,labels = Zones, explode = [0,0,0.2,0,0], autopct = "%1.2f%%")
    plt.show()Given Two 1D arrays A and B with same shape containing Data Observations. Calculate the covariance, Correlation and Linear Regression? 

  2. What is histogram? Which function in python is used to create histogram? Write all its parameters and Explain them. 

  3. Write a program to draw the sin wave and cos wave (using some serially sequenced range of radian values) in a single line chart.
  4. Consider the following data and write a command to plot the following Graphs:
    X = [10,60,50,30,70]
    Y = [90,80,50,46,20]
    • Draw a horizontal histogram for both X and Y on the same frame.
    • Plot a “red” colored line chart of X and show the legend with Name – “Data”.
    • Plot a scattered chart for (X,Y) points with Diamond shape and all points should have different colors.
  5. Draw histogram programmatically in python with following frequency of scores 1,1,2,2,2,2,2,3,3,3,3,4,4,5 with range (bins) starting from 1 to 5.
    Click Here for Solution
  6. Write the python code to plot the given histogram with the following data set:
    Score=[8,10,15,25,28,35,47,49,50,63,67,53,57,58,69]
    data visulalization class 12 informatics practices

No comments:

Post a Comment