Unnamed: 0 al su age bp bgr bu sc sod pot hemo pcv wbcc rbcc rbcabnormal pcabnormal…
Jump to turn (16)
- 1Unnamed: 0 al su age bp bgr bu sc sod pot hemo pcv wbcc rbcc rbcabnormal pcabnor
- 2age - age bp - blood pressure sg - specific gravity al - albumin su - sugar rbc
- 3if the data is already in dataframe form
- 4SELECT Target, COUNT() AS count FROM yourtablename GROUP BY Target; make this in
- 5SELECT Target, COUNT() AS count FROM yourtablename GROUP BY Target; make this in
- 6it is showing an error
- 7it is giving an error message about it being a dataset
- 8it is saying being a dataset is the problem
- 9this is the type so convert the sql query for this
- 10this is the tyoe so write the sql query for this
- 11make it pandas from sql
- 12what does the keyerror mean
- 13The code written above is giving a output the total number of positive and negat
- 14no do not improve code improve the grammer of what i wrote
- 15Converted SQL to Pandas code result = removeddataset.groupby('class').size().res
- 16why is unique ID not important for modeling and prediction
- Usercode
Unnamed: 0 al su age bp bgr bu sc sod pot hemo pcv wbcc rbcc rbc_abnormal pc_abnormal pcc_present ba_present htn_yes dm_yes cad_yes appet_poor pe_yes ane_yes Target_ckd0 2 2.0 0.0 0.743243 0.50 0.442060 0.901961 0.432099 0.500000 0.793103 0.000000 0.032258 0.395161 0.057143 1 1 0 0 1 1 1 1 1 1 1 1 5 2.0 2.0 0.770270 1.00 0.901288 0.163399 0.345679 0.766667 0.206897 0.524752 0.548387 0.443548 0.342857 0 0 0 1 1 0 1 0 0 0 1 2 7 2.0 0.0 0.905405 0.50 0.785408 0.862745 0.518519 0.600000 1.000000 0.277228 0.322581 0.233871 0.371429 1 1 0 0 1 1 1 0 0 0 1 3 8 4.0 0.0 0.202703 0.75 0.158798 0.196078 0.160494 0.166667 0.206897 0.059406 0.000000 0.653226 0.257143 0 1 1 1 0 0 0 0 0 1 1 4 9 4.0 2.0 0.783784 1.00 0.399142 0.287582 0.839506 0.666667 0.586207 0.019802 0.096774 0.258065 0.114286 1 1 0 1 1 1 0 0 1 0 1 5 10 3.0 1.0 0.729730 0.00 0.935622 0.169935 0.160494 0.333333 0.034483 0.019802 0.064516 0.879032 0.000000 0 1 1 0 1 0 0 1 0 1 1 6 12 2.0 0.0 0.675676 0.75 0.253219 0.633987 0.777778 0.366667 0.655172 0.138614 0.193548 0.169355 0.114286 1 1 0 0 1 0 0 0 0 0 1 7 13 4.0 3.0 0.851351 0.25 0.618026 0.562092 0.728395 0.000000 0.344828 0.168317 0.161290 0.580645 0.085714 0 1 1 1 1 1 1 0 1 1 1 8 15 1.0 0.0 0.540541 0.00 0.399142 0.535948 0.358025 0.700000 0.379310 0.207921 0.161290 0.830645 0.057143 0 0 0 0 1 1 0 0 0 0 1 9 18 3.0 0.0 0.756757 0.25 0.223176 0.209150 0.160494 0.533333 0.620690 0.485149 0.516129 0.290323 0.257143 0 1 0 0 1 1 0 0 0 0 1 10 19 3.0 1.0 0.662162 0.50 0.618026 0.411765 0.432099 0.566667 0.689655 0.316832 0.354839 0.250000 0.200000 0 1 1 1 1 1 0 0 1 0 1 11 20 4.0 1.0 0.783784 0.00 0.725322 0.313725 0.481481 0.566667 0.862069 0.178218 0.193548 0.258065 0.114286 1 1 0 1 1 1 0 1 1 0 1 12 22 4.0 0.0 0.878378 0.00 0.206009 0.751634 0.604938 0.533333 0.689655 0.366337 0.387097 0.879032 0.371429 0 0 0 0 1 1 0 1 1 0 1 13 23 3.0 0.0 0.878378 0.25 0.639485 0.470588 0.395062 0.433333 0.517241 0.267327 0.322581 0.104839 0.171429 0 1 1 1 1 1 1 0 0 0 1 14 29 1.0 0.0 0.716216 0.50 1.000000 0.163399 0.111111 0.066667 0.206897 0.267327 0.387097 0.532258 0.371429 1 0 0 0 0 1 0 1 0 0 1 convert this into a markdown table