Code Monkey home page Code Monkey logo

mini-project's Introduction

Mini-Project

ANALYSIS OF THE DETAILS OF A PERSON

Aim:

Analysis of the details of a person.

ALGORITHM:

Step:1 Importing necessary packages.

Step:2 Read the data set.

Step:3 Execute the methods.

Step:4 Run the program.

Step:5 Get the output.

CODE AND OUTPUT:

import pandas as pd
df = pd.read_csv("addresses.csv")

df.head(4)

image

df.info()

image

df.dropna(how='all').shape

image

df.fillna(0)

image

df.fillna(method='bfill')

image

df.duplicated()

image

exp = [13,23,28,12,5,9,31,26,10,19,22,24,29,4,25,30]
af=pd.DataFrame(exp)
af

image

q1=af.quantile(0.25)
q2=af.quantile(0.5)
q3=af.quantile(0.75)
iqr=q3-q1

low=q1-1.5*iqr
low

image

high=q1+1.5*iqr
high

image

sns.boxplot(data=af)

image

import pandas as pd
import matplotlib.pyplot as plt


data = pd.read_csv("addresses.csv")


plt.figure(figsize=(8, 4))
data['Desig'].value_counts().plot(kind='bar')
plt.title('Distribution of Desig')
plt.xlabel('Desig')
plt.ylabel('Count')
plt.show()

image

import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt

sns.pairplot(data, hue="Desig")
plt.show()

image

correlation_matrix = data.corr()
plt.figure(figsize=(8, 6))
sns.heatmap(correlation_matrix, annot=True, cmap="coolwarm")
plt.title("Correlation Matrix")
plt.show()

image

import pandas as pd
from sklearn.preprocessing import StandardScaler

numerical_features = ['ID']
scaler = StandardScaler()
data[numerical_features] = scaler.fit_transform(data[numerical_features])
data

image

from sklearn.preprocessing import MaxAbsScaler

scaler = MaxAbsScaler()
columns_to_scale = ['ID']
data[columns_to_scale] = scaler.fit_transform(data[columns_to_scale])
data

image

from sklearn.preprocessing import RobustScaler
scaler = RobustScaler()
data[['ID']] = scaler.fit_transform(data[['ID']])
data

image

data.skew()

image

import matplotlib.pyplot as plt
import seaborn as sns
import statsmodels.api as sm
import scipy.stats as stats
import numpy as np

np.log(df["ID"])

image

np.sqrt(df["ID"])

image

sm.qqplot(df['ID'],line='45')
plt.show()

image

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

plt.figure(figsize=(8, 4))
plt.hist(data['ID'], bins=10, color='skyblue', edgecolor='black')
plt.title('Position')
plt.xlabel('ID')
plt.ylabel('Frequency')
plt.show()

image

plt.figure(figsize=(8, 4))
sns.boxplot(data=data, x='ID', color='lightcoral')
plt.title('Position Boxplot')
plt.xlabel('ID')
plt.show()

image

plt.figure(figsize=(10, 4))
sns.countplot(data=data, x='Desig', palette='Set2')
plt.title('Desig Counts')
plt.xlabel('Desig')
plt.ylabel('Count')
plt.show()

image

Result:

Hence the program to analyze the data set using data science is applied sucessfully.

mini-project's People

Contributors

abishekanand15 avatar karthi-govindharaju avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.