<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Identifying the certain values and counting the event of maximum precipitation with it's date and pointID with python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/identifying-the-certain-values-and-counting-the/m-p/1184447#M64795</link>
    <description>&lt;P&gt;I have a csv file of my study area and I want to choose best area in this large study area to run my modelling for hydrogeology which is based on maximum event precipitation.&lt;/P&gt;&lt;P&gt;I have the code and I can indexing and get the value by thresholding.&lt;/P&gt;&lt;P&gt;For example: I choose index 1450 and show the value more than 100.&lt;/P&gt;&lt;P&gt;Problem is how can I identify the values that I want and get rid of the useless data, delete them and save it to new csv file?&lt;/P&gt;&lt;P&gt;Or how can I just display the valuable data with dates and pointid of that value?&lt;/P&gt;&lt;P&gt;I want to show me the value based on the date and count of how many times that event happened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%pylab inline
import pandas as pd
import numpy as np
from scipy import stats
import time

data_all= pd.read_csv('D:/Project_by_tiff_SA/CSV file/GPM2points_SA.csv')

rain_all=data_all[data_all.columns[pd.Series(data_all.columns).str.startswith('D_')]]

#Drop some fields
rain_drop=data_all.drop(["OID_","pointid","grid_code","Mean","Max"],axis=1)

#Transpose Data
trans_all=rain_drop.T
trans_all

#If I index like this I'd get the NAN table 
#I need the values to be shown based on date for whole 17000 points
thresh=trans_all[64500][trans_all[64500]&amp;gt;100]
thresh

#I was wondering if it's correct way to show value counts or not.
trans_all[64500][trans_all[64500]&amp;gt;500].value_counts()

#To save the result
df.to_csv("H123.csv",index=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the csv file for 17000 points but I will be attached the light version&lt;/P&gt;&lt;P&gt;Attachment: It can also be done with the test data with only 24pixels. I'll attach the light version.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2022 22:51:39 GMT</pubDate>
    <dc:creator>HadiK</dc:creator>
    <dc:date>2022-06-20T22:51:39Z</dc:date>
    <item>
      <title>Identifying the certain values and counting the event of maximum precipitation with it's date and pointID with python</title>
      <link>https://community.esri.com/t5/python-questions/identifying-the-certain-values-and-counting-the/m-p/1184447#M64795</link>
      <description>&lt;P&gt;I have a csv file of my study area and I want to choose best area in this large study area to run my modelling for hydrogeology which is based on maximum event precipitation.&lt;/P&gt;&lt;P&gt;I have the code and I can indexing and get the value by thresholding.&lt;/P&gt;&lt;P&gt;For example: I choose index 1450 and show the value more than 100.&lt;/P&gt;&lt;P&gt;Problem is how can I identify the values that I want and get rid of the useless data, delete them and save it to new csv file?&lt;/P&gt;&lt;P&gt;Or how can I just display the valuable data with dates and pointid of that value?&lt;/P&gt;&lt;P&gt;I want to show me the value based on the date and count of how many times that event happened.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;%pylab inline
import pandas as pd
import numpy as np
from scipy import stats
import time

data_all= pd.read_csv('D:/Project_by_tiff_SA/CSV file/GPM2points_SA.csv')

rain_all=data_all[data_all.columns[pd.Series(data_all.columns).str.startswith('D_')]]

#Drop some fields
rain_drop=data_all.drop(["OID_","pointid","grid_code","Mean","Max"],axis=1)

#Transpose Data
trans_all=rain_drop.T
trans_all

#If I index like this I'd get the NAN table 
#I need the values to be shown based on date for whole 17000 points
thresh=trans_all[64500][trans_all[64500]&amp;gt;100]
thresh

#I was wondering if it's correct way to show value counts or not.
trans_all[64500][trans_all[64500]&amp;gt;500].value_counts()

#To save the result
df.to_csv("H123.csv",index=True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the csv file for 17000 points but I will be attached the light version&lt;/P&gt;&lt;P&gt;Attachment: It can also be done with the test data with only 24pixels. I'll attach the light version.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 22:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/identifying-the-certain-values-and-counting-the/m-p/1184447#M64795</guid>
      <dc:creator>HadiK</dc:creator>
      <dc:date>2022-06-20T22:51:39Z</dc:date>
    </item>
  </channel>
</rss>

