2018년 5월 30일 수요일

[Python] Numpy - for Data Analysis

1. open a csv file
   - np.loadtxt

2. data preparation
   - answer1=score[:,10:]
   - rset1=score[:, :10]
   - tmp=np.ones(22, dtype='uint8')
   - tmp=tmp*4
   - tmp[20:]=1
   - bool_answer1=(answer1==rset1)
   - scoreset=bool_answer1*1
   - scoreset[20:]=rset1[20:]

3. data integration
  - np.dot

4. show charts using datas
   - plt.plot
   - plt.bar

2018년 5월 27일 일요일

[Python] matplotlib rain simulation modification

https://matplotlib.org/gallery/animation/rain.html#sphx-glr-gallery-animation-rain-py

1)
scat=facecolors=rain_drops['color'],

2)
rain_drops['color'] = np.random.uniform(0, 1, (n_drops, 4))

<<result>>



* gtk install
pip install PyGTK

[Android Studio] Installation and Make a Layer for Mac OS(High Sierra)

1. download android studio https://developer.android.com/studio/#downloads 2. Make a Shared Resource(String in this case) 3...