The 'gmv' column is string from dataframe 'df_g' ; It is number with comma (eg. "106,223")
I'm trying to select data with 2-conditions which are 'bigger than 1000000' and 'smaller than 10000' as int-type.
df_g[(df_g.gmv.str.replace(',', '').astype('int')<=10000) | (df_g.gmv.str.replace(',', '').astype('int')>=1000000)]
So I removed comma using 'replace' in order to change datatype as int.
But I think there would be better way, like not using <df_g.gmv.str.replace(',', '').astype('int')> twice or somthing.
Is there simple way to write this?