Posts

Seaborn Package

Image
Seaborn is a powerful and easy-to-use Python data visualization library built on top of Matplotlib. It provides a high-level interface for drawing attractive and informative statistical graphics. Introduction to Seaborn Why Seaborn? Built on top of matplotlib → better style and simplicity. Works well with pandas DataFrames. Built-in themes, color palettes, and functions for visualizing statistical relationships. Automatic handling of data aggregation, bootstrapping, and confidence intervals. 📦 Installing Seaborn pip install seaborn 🐍 Importing Seaborn in Python import seaborn as sns While Seaborn is most powerful when used with pandas DataFrames, you can use it directly with Python lists, NumPy arrays , or simple Python dictionaries too. 1. Scatter Plot (Lists) import seaborn as sns import matplotlib.pyplot as plt x = [ 10 , 20 , 30 , 40 , 50 ] y = [ 5 , 15 , 25 , 35 , 45 ] sns.scatterplot(x=x, y=y) plt.title( "Simple Scatter Plot" ) plt.show() ...

Python for Artificial Intelligence MNCST 319 KTU 2024 Scheme Minor Model Question Paper

  MODEL QUESTION PAPER APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY THIRD SEMESTER B.TECH MINOR DEGREE EXAMINATION,MONTH AND YEAR CourseCode: MNCST319 Course Name: PYTHON FOR ARTIFICIAL INTELLIGENCE Max.Marks: 60   Duration:      2hours30 minutes       PART A     Answerallquestions.Eachquestioncarries3 marks CO Mark s 1   Explain the syntax of for loop to display the even numbers within the range 2 and 100 in reverse order. 1 3 2   Write a Python script to find the factorial of a given number. 1 3 3   Discuss the use of init method in a class with suitable examples. 2 3 4 ...