전체 글176 [python] Covid19 정보조회 지난 포스팅에서 Golang으로 #Covid19 각국의 감염정보를 조회하는 방법을 알아봤다https://xwing.tistory.com/169이번엔 같은 정보를 파이썬으로 만들어 보겠다.import pandas as pdimport numpy as npimport matplotlib.pyplot as pltimport requestsimport jsonr = requests.get('https://api.covid19api.com/dayone/country/korea-south/status/confirmed', stream=False)html = r.textitems = json.loads(html)df = pd.DataFrame(items)#print (df)df.to_excel (r'Covid19(S.. 2021. 1. 28. [golang] Covid19 정보 조회 Covid19 1년넘게 지겹게 우릴를 괴롭히고 있는는 #Covid19에 대한 정보를 얻을 수 있는 공개된 API는 이미 많이 있다.. 구글검색 조금만 하면 쉽게 찾을 수 있다. 이번엔 API를 이용해서 우리나라의 코로나19 감염발생자수를 조회해 보자 package main import ( "encoding/json" "fmt" "io/ioutil" "net/http" ) type Country struct { Country string CountryCode string Province string City string CityCode string Lat string Lon string Cases int Status string Date string } func main() { url := "https:/.. 2021. 1. 27. [golnag] 기초 excelize Golang excelize 를 이용해서 excel 파일 읽기go get github.com/360EntSecGroup-Skylar/excelizepackage mainimport ( "fmt" "log" "github.com/360EntSecGroup-Skylar/excelize")func main() { xlsx, err := excelize.OpenFile("./test.xlsx") if err != nil { panic(err) } // sheet name activeSheet := xlsx.GetActiveSheetIndex() activeSheetName := xlsx.GetSheetName(activeSheet) // get value (시트명, 셀위치) log.Println(xlsx.Ge.. 2021. 1. 18. [python] pyinstaller using pyinstaller install pip install pyinstaller site https://pyinstaller.readthedocs.io/en/stable/usage.html Using PyInstaller — PyInstaller 4.2 documentation Making GNU/Linux Apps Forward-Compatible Under GNU/Linux, PyInstaller does not bundle libc (the C standard library, usually glibc, the Gnu version) with the app. Instead, the app expects to link dynamically to the libc from the local OS .. 2021. 1. 17. [python 기초] 엑셀에 달력출력하기 Python 과 openpyxl 을 이용해서 달력을 엑셀에 출력해 봅시다 # 달력 출력하기 from openpyxl import styles from openpyxl.styles.borders import Border, Side from openpyxl.styles import Font, Color, Alignment from openpyxl import Workbook import openpyxl import calendar import datetime BORDER_NONE = None BORDER_DASHDOT = 'dashDot' BORDER_DASHDOTDOT = 'dashDotDot' BORDER_DASHED = 'dashed' BORDER_DOTTED = 'dotted' BORDER_DOUBL.. 2021. 1. 7. [python 기초] 엑셀에 구구단 출력하기 Python 과 python 모듈 openpyxl 을 이용해서 엑셀에 구구단을 출력해 봅시다. openpyxl 설치 site : openpyxl.readthedocs.io/en/stable/index.html openpyxl - A Python library to read/write Excel 2010 xlsx/xlsm files — openpyxl 3.0.5 documentation Install openpyxl using pip. It is advisable to do this in a Python virtualenv without system packages: Warning To be able to include images (jpeg, png, bmp,…) into an openpyxl file,.. 2021. 1. 5. 이전 1 2 3 4 5 6 7 ··· 30 다음