0% found this document useful (0 votes)
5 views

BI journals

The document provides instructions on how to import data from an Excel file into a database and create a Pivot Table for data analysis. It also discusses using decision trees for predictions and the application of K-means clustering for data segmentation. Additionally, it covers regression analysis and visualization techniques using Python libraries like pandas and matplotlib.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
5 views

BI journals

The document provides instructions on how to import data from an Excel file into a database and create a Pivot Table for data analysis. It also discusses using decision trees for predictions and the application of K-means clustering for data segmentation. Additionally, it covers regression analysis and visualization techniques using Python libraries like pandas and matplotlib.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 14
mbox} the data saaehouse dala __in_Micnosoft Excel and able Divo! _adventuse wosks datat e _4he_datobaie anload _aduentuxe database {som the |ndecne+ moking any excel File os + bpen Set a Open Abe enctoslt owes BL, goto g@t_Dela_ond_ selec SOL Souves, Excel file of Any tink Gntainabl _| data Qaeda the We ax gnies ihe lint os 5@L Sesvey_name “Teele the Daiahase and select the dable to impute [= Chice toad button Divak Table eck any. ce\| ata the inported dato —__— Gata the —{nsett_tab.__— aa a Civeeeaaa BU ee a ee the Coeate PiveH Table _dailog ; chase — the dole x _ond placement (ys PusseTable, —____— oull@lidestt PivotTable field pane to aasang e Addo Pruot Cheat + Click coithin PivatToble + Navigate the Pivotlable _Analre 4 ¢ piwokthast and soled ihe desised chibi ype mt on 4nd Cseaie {ho daia_Ana\y si tihat=1t_ Ainatysic {oe data UYuvalizedion. d_gonena}e_ Necesiaay zwzepasts based on the _ data Use Cxcel —asehouse ata into Excel 2 SO sever database to get Ma nwally (Gseate data on Excel” Apply What-iF An 2 Nawgclo + the 0 en What-iP ¥Sis > Goal Seek the soal-seek tecsatead diclog select __ want 4to_achieve oa Specific value valoo Cla Value), and the desised Necisiontace Casts ‘om.__SkIe: d impost vain telk. split __ skleaan.melaics 1mpodt Si cae ox Isis dataser Yoad ims) dato.data_, data taxge + plik the data into sani oo ng SES ennai Wiest =4¥on_ tes split WX, yy — A epk-Si20=0 2 ca ndarn_state= 42) The srandom—state ensue Pee ae the sejult f lecision tee ~ Derisiontectla tities Cxandom state =42) 5 4a Tran thr decision mode! _on dhe daains ng enetaeac ee slon_tace. fit (x_taain, ytaain) EE make _paediculion via _4ouin_mode | __|_-y- pied = decitinntace._pired ict Ctect) ______— # (nleolate the occusay of mode) “poedictiay accusary = accesacy—sease (ye, y- paced) ae = dasification-sepes+ (y pe ge name)= -_daja tao ccasacy and classikcasion adel Accuracy ¥ An Claniification o$_G neu sample new—sample 54, 3.5, 140.03) Psedicted_claty = decision_taee. poedict Coe. Poedicled_claty name pink ('\nPaedicd@on {hs nen Sample”, nea sample) point (" medicted clay", poedicted clan name) cloxering using a _Clostesing | from SKleasn. dataseds ot load-inis from _skleasn closes impos! KmeanJ limpost pandas_as pd limpoxt metplolils. pypl: as pt lois Sane | data = aie Eee Cisis Data , (aldm bs Siti featutes_nam é est to Dalaframe fas _easies hand! ed pone! Fisst 5 wows of dhe 12s data ‘ttpaly_k-meanicluite 12 dostew) |Kmeons =kHeans Cn—cluitess 3, sondom_stat datal’clusiesJ= Kmeant fit. predict Cdata lt Duplay the dataset coh cluiLes label | pane Cin Dataset sith Cluslee Labels :2') pint Cdatq head()) FEplokduienng 1 Rnsen rancor fe pic 1, dars.slocc:, 1} c=datal: pl meri K= means Custeain: Yass Datoset) - xlabe! Cais. fea Pra een pl ylabel Cys1y. featuse names ti) Peglosmn Gneas_aeqsession on th “dal zeqpesvion onthe suuen dala | dala using ¥ = FF pip ‘ail nuenpy Metplottih leas imPaost numpy as np iMpost mepiotlib. pyplok ay ple sKleasn .lineas mode | ima6s+= Lineaw ey 805.10 ip (X= np. caaay (C161 194,188, 126, D8, 136, 179,163/152J - Seanad opsay(L 63, 91,56, 9. 4%,52, $642,621) wb fos _heh+ 1300 t < RC : seg session line z tr aa xs colet=tHue" label =" pila Points") el. paedict(x) , colas=“aed", linemdth= 2) __ Ia rea Lael tne") Alt eee an ain_k4”) ye (Hewht 2 colpik Boyiessing) _| ath Lege wo thy plot i (\ineaacqveniur § ts + pandas os pa nicer 00} © plotlib. pyplot wat | feora _skteash_tineas_cnad 54_Lineaskea rection {yom _SKleqs h. f 4 8ain* Let} 3 pli LL — data data dP = pd. Dulaksarne Cate) nL("‘Sample dala :”) pant (dala dP f Frino the fealuney Cx and_tanget (¥) ae X_= dat (PH) Sica y= dala d PEC! Ley (Kg) JI IkAgain, Xutest, 4 teyt= tran bed cphhGe, yy test si20=0.2, sardom_siale=42y W Display sesult pint (“cae (icient | paint (*[nlescept HE plok the yeivll _||pib.se C )) tolos = "ved" Jabel="'Recresion | ‘pt dite neas Reane< tion’) J pit_alabey (Height ty) AL. wlabel ( ‘wWéiant (Kq)’) |p Vegendiy— [pt stow) = walt ewawariaca ant _|ael psedict valve (net Tee psedichon = model. predict (np axsay (CC new-hel gh) ) elvan ppedichionlO} mple (Ga pare ESS cled—value = poedick_yalue (new-Somple) a dic install nstall spot: pandas a, pd e Asam dh cnedel_selechoy Pub n_fest {sorn__skleaan\ineas_madel tm past Reg vessitn data = "Hse." Sas se a “Admited” [1,1 9,1 0 0, O,D-140, 1d — = ee Conuesh > See — dota into Anaining and testing i 1 j —_||Xtaain, x4esl, Y tain drain Yess pandom state =42 ) AE Train _looist ic_peqvesion made} wicRearessianQ __|_madel. fit Cx brainy Yo tsain) HE Comvest the Sample secotd inin 0 DaiaFaame ith Corgect Column names pd Daishaame (ILO, 30,256,033, olomns= (usc, ‘S5<” "cer viva) student) sample. tudent= Jedician = model eit amp aunt (* paedicded Ad misnon | Ci= Pdmied ,0= Net Ad mi He d) ie ED: Python pag impost panda. def analyze data Cde —painkc Jata_ Analysis Repost point ("\n Fisst 5 entarer:") psint ( af head) FE Basic Static ties Point ("Vn Baye Staruiet pein CARTE Age", ‘Salany CIN)" TO descaibeO) | HE Puerqge saloay by -gendee Ss | \ i aE peony” dew) Saleny ¢ au. cays Salas Gg ry C Gren alaay CNR I ai BC) wound() 2 —— pal by Gendet:” ) | paint Ceiycoontss C Fe a [ ao 2F people pen ciky coantS = af Tcity"] walue covntl() |__paint(“\n Numbes_of eagle ped_cit Hy | paint (city. counts) at Age Dust bution — = iin) 22a 26140) 2oweoreeeees 1 {jo-39? ,' 40-49"

You might also like