9122122, 752 PM Logreg
Name: Shruti Suman
ROLL: MCA/10011/21
#logistic Regression (1)
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.preprocessing import Standardscaler
from sklearn.model_selection import train_test_split
from sklearn import preprocessing
from sklearn.linear_madel import LogisticRegression
plt.re("font", size=7)
data=pd.read_csv("foodPrices.csv")
data
rt date admint admin2__—market latitude longitude category commodity unit
15
0 o1- Deh Delhi Delh 28666667 7.216667 “ereals anc Rice KG
1908 tubers
6 cereal
1 ol Delh Delhi el aasnens7 7716667 SEAN hay KC
sea tubers
i miscellaneous
2 01 Deh Delhi Delh 28666667 77.216667 wus Sugar KG
1994
e oll
3 01. Deh Delhi Delh 28666667 7.216667 oiland fats. stay KE
(mustard
1994
& cereals and
4 O1- Gujarat Ahmadabad Ahmedabad 23033333 72616667 “92 Rice KG
ers
1994
15 West West ulses anc Lentils
rraotz o7- West Mest Gharagpur 22330330 7.226720 PUES ents Ke
sels Bengal Vidnapore aut (masur
ae West West uses and Lentils
12013 o7- ee idnapore “haragpur 2.339330 87.226720 PUSS Lentils gg
apts Bengal Vidnapore auts (moon
15 West West pulses and Lentils
12014 07- Sharagpur 22.339330 87.226720 tents KG
soup Bengal Vidnapore nuts furad
localhost 8889inbconverthimll.ogReg ipynb?download=tas ana9122122, 752 PM LogReg
date adi admin2 market latitude longitude category commodity unit
Ae West West vegetables
yrois 07. Nes St charagpur 22339330 87226720 °° Onions «6
aoss Bengal Midnapore and fruits
Ae west West vegetables
172016 07- haragpur 22339330 7.226720 Tomatoes KG
aop Bengal Midnapore and fruits
171228 rows x 14 columns
rT »
; for col in data.colunns:
print(