News
Entertainment
Science & Technology
Life
Culture & Art
Hobbies
News
Entertainment
Science & Technology
Culture & Art
Hobbies
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 E-Commerce Sales Dataset # E-Commerce Sales Visualization using Seaborn #This project analyzes e-commerce sales data using Seaborn and Matplotlib. # It visualizes trends...
Get Job-ready: Java Course with 45+ Real-time Projects! - Learn Java SQL Queries CREATE DATABASE restaurant_db; USE restaurant_db; CREATE TABLE customers ( customer_id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100), contact VARCHAR(15) ); CREATE TABLE...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 Iris Dataset import pandas as pd import numpy as np from sklearn.preprocessing import LabelEncoder from sklearn.model_selection import train_test_split from sklearn.metrics import confusion_matrix from...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import pandas as pd import numpy as np import seaborn as sns df_tip=pd.read_csv("D://scikit_data/Billing/tips.csv") df_tip.head() df_tip.shape df_tip.info() df_tip.isnull().sum() sns.barplot(x='day',y='total_bill',hue='sex',data=df_tip,hue_order=['Male','Female']) sns.barplot(x='day',y='total_bill',hue='sex',hue_order=['Male','Female'],order=['Thur','Fri','Sat','Sun'],data=df_tip) sns.barplot(x='day',y='total_bill',hue='sex',data=df_tip) sns.barplot(x='day',y='total_bill',hue='sex',data=df_tip,ci=12) sns.barplot(x='day',y='total_bill',hue='sex',data=df_tip,orient='h') sns.barplot(y='day',x='total_bill',hue='sex',data=df_tip)...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import matplotlib.pyplot as plt import pandas as pd import numpy as np df=pd.read_csv("D:scikit_datacardatacarprices.csv") df.head(5) df=df.rename(columns={'Age(yrs)':'Age'}) df=df.rename(columns={'Sell Price($)':'SellPrice'}) df.head(5) plt.scatter(df['Mileage'],df['SellPrice'],color='red') plt.scatter(df['Age'],df['SellPrice'],color='red') from sklearn.model_selection import...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt df_tips=pd.read_csv("D://scikit_data/Billing/tips.csv") df_tips.head() df_tips.info() df_tips.isnull().sum() df_tips.shape sns.pairplot(df_tips,hue='sex',palette='Accent_r') sns.pairplot(df_tips,hue='sex',kind='scatter')...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt df_sales=pd.read_excel("D://scikit_data/Sale/sales.xlsx") df_sales.head() df_sales.info() df_sales.isnull().sum() df_sales.shape sns.relplot(x='Sales',y='Profit',data=df_sales,hue='Order Priority',style='Ship...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import matplotlib.pyplot as plt from sklearn.datasets import load_digits digits=load_digits() digits dir(digits) digits.images[0] plt.gray() plt.matshow(digits.images[9]) plt.show() for i in range(9): plt.matshow(digits.images[i]) digits.target[:10] from sklearn.model_selection...
Get Job-ready: Java Course with 45+ Real-time Projects! - Learn Java Program 1 import java.io.*; import java.util.*; public class ToDoListProject { static ArrayList<String> tasks=new ArrayList<String>(); public static void main(String[] args) { Scanner scan=new Scanner(System.in);...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 # Program for PDBC import MySQLdb try: con=MySQLdb.connect(host='localhost',user='root',password='root',database='DataFlair') print("Data Base connected") eno=int(input("Enter Employee No:")) name=input("Enter Employee Name:") mobile=int(input("Enter Mobile No:"))...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 # Project: Movie Ratings and Analytics System import mysql.connector # Connect to MySQL db = mysql.connector.connect( host="localhost", user="root", password="root", #...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 import mysql.connector from tabulate import tabulate # Database connection def connect_db(): return mysql.connector.connect( host="localhost", user="root", password="root", database="sales_db" ) # 1....
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 # Program for PDBC Delete Data by id import MySQLdb try: con=MySQLdb.connect(host='localhost',user='root',password='root',database='DataFlair') print("Data Base connected") empid=int(input("Enter employee id for delete:...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 # PDBC with OOPS import MySQLdb class EmployeeDatabase: # Connection def __init__(self): self.con=MySQLdb.connect(host='localhost',user='root',password='root',database='college') #print("Connection success") # Insert record def insertdata(self,name,dept,salary,gender,city):...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import matplotlib.pyplot as plt import numpy as np x = np.array([5,7,8,7,2,17,2,9,4,11,12,9,6]) y = np.array([99,86,87,88,111,86,103,87,94,78,77,85,86]) x1 = np.array([2,2,8,1,15,8,12,9,7,3,11,4,7,14,12]) y1 = np.array([100,105,84,105,90,99,90,95,94,100,79,112,91,80,85]) x2 = np.array([4,3,8,1,10,9,12,7,8,5,10,6,7,12,14])...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import matplotlib.pyplot as mat x=[0,10,20,30,40,50] y=[0,100,200,300,400,500] mat.plot(x,y) c={'family':'Times New Roman','size':20,'color':'r'} fc1={'family':'Times New Roman','size':25,'color':'g'} mat.xlabel("Product",fontdict=c) mat.ylabel("Price",fontdict=fc1) mat.title("Data Flair",fontdict=fc1) mat.xticks(x,['A','B','C','D','E','F']) mat.yticks(y,['50-60','10-20','20-30','30-40','40-50','50-60']) # mat.xlim([10,100]) # mat.ylim([100,500])...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 # Program for Select data(search) import MySQLdb try: con=MySQLdb.connect(host='localhost',user='root',password='root',database='DataFlair') #print("Data Base connected") sql="select * from employee" cur=con.cursor() cur.execute(sql) result=cur.fetchall() print("------------------------------------------")...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 # Program to search one record (based on PK) import MySQLdb try: con=MySQLdb.connect(host='localhost',user='root',password='root',database='college') #print("Data base connected") empid=int(input("Enter employee id for...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import matplotlib.pyplot as plt import numpy as np x = np.array([5,7,8,7,2,17,2,9,4,11,12,9,6]) y = np.array([99,86,87,88,111,86,103,87,94,78,77,85,86]) colors = np.array([10,20,25,35,50,60,75,80,90,100,110,120,130]) plt.scatter(x,y,cmap='BuPu',c=colors) plt.colorbar() plt.xlabel("Car Age") plt.ylabel("Milage") plt.legend()...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import matplotlib.pyplot as mat x=[0,1,2,3,4,5] y=[i**2 for i in x] mat.plot(x,y,marker='.',mfc='y',mec='k',ms=10,ls="dotted",lw=2,c='r') fc={'family':'Times New Roman','size':20,'color':'r'} fc1={'family':'Times New Roman','size':25,'color':'g'} fc2={'family':'Verdana','size':30,'color':'b'} mat.xlabel("X-Axis",fontdict=fc) mat.ylabel("Y-Axis",fontdict=fc) mat.title("Line Chart",fontdict=fc2) mat.show()...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import matplotlib.pyplot as mat x=[0,1,2,3,4,5] y=[0,1,4,9,16,25] x1=[10,20,30,40,50] y1=[10,30,20,50,40] x2=[100,200,300,400,500] y3=[100,400,300,500,200] mat.subplot(3,1,1) mat.plot(x,y,marker="o",mec='k',mfc='r',ms=10,ls="solid",lw=5,c='b',label='Product1 ') mat.plot(y1,x1,marker="o",mec='r',mfc='k',ms=10,ls="solid",lw=5,c='g',label='Product 2') mat.xlabel("X-Product") mat.xlabel("Y Product") mat.title("Product") mat.legend() mat.subplot(3,1,2) mat.plot(x1,y1,marker="o",mec='y',mfc='k',ms=10,ls="solid",lw=5,c='r',label='Sales') mat.xlabel("X-Sales")...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import matplotlib.pyplot as plt x=[10,20,30,40,50] y=[10,50,40,30,20] #plt.plot(x,y,ls="solid",lw=3,c='k') plt.plot(x,y,marker="o",mec='k',mfc='r',ms=10,ls="solid",lw=5,c='b') plt.title("Student Info") plt.xlabel("X-Axis") plt.ylabel("Y-Axis") plt.show() # o-circle # d-Dimond # p-Pentagon # h-Hexagone # *...
Machine Learning courses with 100+ Real-time projects Start Now!! Program 1 import matplotlib.pyplot as mat x=[0,1,2,3,4,5] y=[0,1,4,9,16,25] y1=[0,10,20,30,40,50] y2=[0,14,26,38,42,58] #mat.plot(x,y,marker='.',mfc='y',mec='k',ms=10,ls="solid",lw=2,c='r') #mat.plot(x,y,x,y1) #mat.legend(['Sales','Product']) mat.plot(x,y,marker='.',mfc='y',mec='k',ms=10,ls="solid",lw=2,c='r',label='Sales') mat.plot(x,y1,marker='.',mfc='r',mec='k',ms=10,ls="solid",lw=2,c='b',label='Product') mat.plot(x,y2,marker='.',mfc='g',mec='k',ms=10,ls="solid",lw=2,c='k',label='Company') #mat.legend(loc=10) mat.legend(loc='upper left',facecolor='yellow',edgecolor='red',framealpha=0.5,shadow=True,fancybox=True) #mat.legend(loc='upper right') #mat.legend(loc='lower left') #mat.legend(loc='lower right')...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python Program 1 #CountDown Project import time def countdown(t): print("tt") while(t): mins,secs=divmod(t,60) timer = f'{mins:02d}:{secs:02d}' print(timer,end="r") time.sleep(1) t=t-1 print("Time's up!") # Main Calling...
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python SQL Queries CREATE DATABASE restaurant_db; USE restaurant_db; CREATE TABLE customers ( customer_id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100), contact VARCHAR(15) ); CREATE...
Free Web development courses with real-time projects Start Now!! Program 1 // ATM Application for Bank "use strict" const ps=require("prompt-sync") const prompt=ps({sigint:true}) class Bank { constructor(acno,name,amount=0) { // console.log("This is create account method") this.acno=acno...
Free Machine Learning courses with 130+ real-time projects Start Now!! Program 1 import seaborn as sns import matplotlib.pyplot as plt import numpy as np import seaborn as sns df_tips=sns.load_dataset('tips') print(df_tips.info()) plt.figure(figsize=(15,10)) sns.scatterplot(x="total_bill",y="tip",hue='time',style='smoker',data=df_tips) plt.title("Scatter plot...
Free Web development courses with real-time projects Start Now!! Program 1 // ATM Application for Bank "use strict" const ps=require("prompt-sync") const prompt=ps({sigint:true}) class Bank { constructor(acno,name,amount=0) { // console.log("This is create account method") this.acno=acno...