분류 전체보기590 시계열 데이터 분석 with pandas Time Series with Pandas 시계열 데이터 특성 ETS 모델 SMA, WMA, SES 모델 ARIMA 모델 시계열 데이터는 시간 데이터를 인덱스로 하는 연속된 데이터 입니다. 시간 데이터를 Python의 DateTime 타입으로 바꾸어 Pandas 가 제공하는 시계열 데이터를 처리하는 아래 기능들을 학습합니다. DateTime 인덱스 Time Resampling Time Shifts Rolling and Expanding DateTime Index -time 또는 date 정보는 별개의 칼럼이기보다 인덱스인 경우가 많다. -Pandas 에 내장된 기능들로 DateTime 인덱스를 생성하고 활용하는 방법을 다룬다. Time Resampling -시계열 데이터의 인덱스는 시, 분 등 작은 단위.. 2019. 8. 12. 파이썬 os 모듈 일부 메서드(os.getcwd(), os.listdir()) print(os.getcwd()) os.listdir() #현재 경로의 디렉터리, 파일명 목록 리스트로 리턴 #해당 경로에서 '키워드'로 끝나는 파일명 추출하는 반복문 for x in os.listdir('/home/yeongbin/다운로드/ai-math-book/02_nlp'): if x.endswith('txt'): print(x) 2019. 5. 15. lg 물류창고 문제(플로이드 알고리즘) #include using namespace std; #define INF 1 N >> M; for (i = 0; i > A[i] >> B[i] >> D[i]; } } int main(){ int ans = -1; InputData();// 입력 함수 for(int i=1; i 2019. 4. 14. 자율 주행 알고리즘 개발 문제 코드 자율 주행 알고리즘 개발 문제 코드 #include #include using namespace std;int H;//세로크기int W;//가로크기char map[500][510];//지도int visit[500][510];int ans = 2100000000;int dir[4][2] = {{-1,0},{0,1},{1,0},{0,-1}};void input_data(){int i;cin >> H >> W;for(i=0 ; i> map[i];}} class Pos{public:int x;int y;int cnt;}; // void dfs(Pos pos, int cnt){// if(pos.x == H-1 && pos.y == W-1){// ans = ans < cnt ? ans : cnt;// return;.. 2019. 3. 20. 이전 1 ··· 106 107 108 109 110 111 112 ··· 148 다음