i hope this post will be helpful for all beginner of python, especially to pandas user. i use winpython as the environment. sample_data.csv COL1
Read MoreCategory: Python
Python Note 17 Feb 2018
this note consists of: read csv using pandas dataframe iteration split string in python sample dictionary python import pandas as pd train =
Read MoreImage To Video (Python)
Alhamdulillah, saya coba share aja code nya disini. Sebenarnya g ada niatan untuk nulis, cuma kayanya code ini bakal berguna lagi di ke depan
Read MoreSample Learning Solver (Pycaffe)
To understand something big, start from the small thing. A simple beginning to understand caffe in python. Maybe my code below can help you.
Read MoreSample Caffe Model Compression
After google and try many times, finally i understand what is real structure of caffemodel. So, i want to share what i get for all of you
Read MoreSnakeviz (Python Profiler)
this is simple result of python profiler using snakeviz. i try to profile python application to create text file. file = open("sample.txt", "w") file.write("sample
Read MoreCreate Text File
file = open("sample.txt", "w") file.write("sample text file") file.close()file = open("sample.txt", "w") file.write("sample text file") file.close()
Read MoreOpen Pickle File
import pickle with open('<name of your pickle>.pkl’, ‘rb’) as f: data = pickle.load(f) print dataimport pickle with open(‘<name of your pickle>.pkl’, ‘rb’) as
Read MoreRename File
import os count_cpk = 1 count_kwg = 1 count_lrg = 1 count_ntk = 1 count_prg = 1 for filename in os.listdir("."): #print
Read More