Posts

Python pandas Group by

Ex Group BY step   1: df=pd.read_csv('ferrovial.csv') df step 2 :data=df.groupby('city') data #aatlu lkheya pche output nai aave next line add karve for city,city_df in data:     print(city)     print(city_df) step 3:particular city joiti hoy to aa step add karvu data.get_group("kerala") Step 4:data.max() #max value aavse step 5:data.mean()#mean value aavse step 6:data.describe() # descibe lkheshu to mean,median,max,min bdhu j aavse Date Close High Low Open Volume city 0 02-01-2007 12.850 12.940 12.710 12.900 3080000.0 vado 1 03-01-2007 12.660 12.860 12.600 12.850 2740000.0 vado 2 04-01-2007 12.450 12.720 12.380 12.590 2330000.0 vado 3 05-01-2007 12.200 12.360 12.070 12.170 1930000.0 vado 4 08-01-2007 12.190 12.280 12.150 12.220 1970000.0 vado 5 09-01-2007 12.450 12.500 12.220 12.390 2560000.0 ahem 6 10-01-2007 12.280 12.480 12.260 12.400 2490000.0 ahem 7 11-01-2007 12.350 12.490 12.200 12.310 1760000.0 ahem 8 12-01-2007...

LOC,IX,Mean

1)loc[specific index row and clm] df.loc[0] #0 index ni row aavi jse df.loc[99]#99 index ni row aavi jse 2)IX{loc na badle lx lkhvanu] df.ix[0] or df.ix[[0,99,76]] # 0,99,76 number ni index aavse or df.ix[[0,99,76],['HP','Attack']] HP Attack 0 45 49 99 30 35 76 65 90 or df.ix[[0,99,76],[5,6]] HP Attack 0 45 49 99 30 35 76 65 90 3)Mean mean=df['HP'].mean()#'HP pokemon no dataset mean 69.25875

data sciense[AND,OR BETWEEN,specefic columns,iloc,ascending,total] ,Change name karvu hooy to excel mathi

1)df=pd.read_csv('nba-players-stats/player_data.csv')[aama je excel file nu je name hoy te lkhvanu ('')brecket ma print(df) 2)df['year_start']=='1991' 3)mask=df['year_start']==1991 df[mask] 4)mask=df['year_start']!=1991        [! ie not] df[mask] 5)mask=df['height']=='7-2'  / /aama height 7-2 vasdi hse ae j aavse df[mask] 6)df.info() 7) AND OPERATOR ->df[(df['year_start']==1992) & (df['year_end']==2001)] ->df[(df['Type 1']=='Grass') & (df['Type 2']=='Poison')& (df['HP']>70)] 8)df[(df['year_start']==1992) & (df['height']=='7-2')] 9) OR OPERATOR df[(df['year_start']==1992) | (df['height']=='7-2')] 10)df['birth_date'].unique() 11)df['birth_date'].duplicated() 12) BETWEEN df = df[df['year_start'].between(1991, 1992, inclusive=True)] df 13) OR AND[NBA che ...

facebook_login_api

//login page with facebook google ma facebook with developers search karvu //doc ma click karvanu and facebool login ma jvanu //android pr click karvanu and string ,manifest,ma ietle vastu add kre devani //save kre ne and pkg name add kre ne save kre devu vedio ma joi ne //How to Integrate Facebook Login with your Android Application youtube : https://www.youtube.com/watch?v=SrAXmZkOpJI /facebook developer ma accout bnavvanu Step 1:xml step 2:java step 3:string  //aama facebook ma developer opdion ma je string hoy ae j copy karve aa ma kbr pde ietle string lidhe che aa string copy karvi nai step 4:manifest step 5:graddle Step 1:xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/activity_main"     android:...

Payment ideal

Step 1:instamojo ma login karvu and PAN card ni bdhi detail puchse ae nakhi deve Step 2:devsupport software download karvu Step 3:Payment Name ni new activity open karvi android studio ma -xml ma button j levu -java ma setonclicklistner lai levu and findViewBy id lai levu Step 4:devsuppuort open karvu and email id nakhvu -Drop your source folder pr click karvu -and je project nu name hoy aeni pr click karvu Step 5:lntegrate pr click karvu Step 6:instamojo lakhvu and search pr click karvu Step 7:,php intergration pr click karvu and and client id and clidnt secret ae instamojo mathi copy-paste kri devu -client id and client-secret instamojo ma javu and aema Api and plugins aeni pr click karvu and click kreya pche client id and client secret copy paste kre devu Step 8:access-token php download karvi Step 9:000webhost pr click karvu and file manager ma jvu and upload files now pr click karvu [aama email id registration karvu + symbol che tyathi and upload files nu sy...

FirebaseTableCategory_insert_image_add(image sava and upload)_ideal

//Step 10 and 11 frgment thi karvu hoy to j leva and fragment,java ma load image no part kadi nakhvo jrrur na hoy to //aama image add tse firebase ma example me jyare app kholis tyare me floatin buttton hse ie(pop box jeveu 1 small button hse) aene pr click kris ne to crop image ,image gallary mathi save karvanu and pche save and upload karvanu to firebase ma save and upload tai jse // //aama phela firebase ma table nai bnaviye to pn chalse direct j bni jse ie sv thi phela aama firebase ma table bnavya vgar j try karvo Step 1:firebase ma jai ne database pr click karvu aema real time database pr click karvu pche spiner pr click karvu database ni baju ma che aene pr ane real time database select karvo Step 2:pche firbase ma Category name aapi ne table bnai devu(image,table)  (aama image automatically Category vada tabale ma image add tai jse ie run app krishu tyare je image aapde gallary mathi laishu ae firebase storage ma save tai jse) Step 3:rulse ma jai ne read and wri...

Push_Notification_guj

//aama sv thi phela firebase jode connect karvu //pche Cloud Messaging ma jvanu pche New Message pr Click karvu then Message Text ma lkhvu the aapdo pooject select karvu Spinner pr Click karvu APP lkhelu chu aeni right side pr Spinner hse Step 1:activity_main.xml And java Step 2:MyFirebaseInstanceIdService.java Step 3:  MyFirebaseMessagingService Step 4:Manifest  //aama services lkhelu che ie j add karvu Step 1:activity_main.xml & java //activity_main.xml and java ma ksho change nai karvano Step 2;MyFirebaseInstanceIdService.java public class MyFirebaseInstanceIdService extends FirebaseInstanceIdService {     private static final String TAG ="" ;     @Override     public void onTokenRefresh() {         // Get updated InstanceID token.         String refreshedToken = FirebaseInstanceId.getInstance().getToken();         Log.d(TAG, "Refreshed token: " + refreshedTok...