2022-02-01から1ヶ月間の記事一覧
bufferings.hatenablog.com www.lifehacker.jp
github.com !pip install pdfplumber !apt install libmagickwand-dev ghostscript !wget "https://www.city.kumamoto.jp/common/UploadFileDsp.aspx?c_id=5&id=4638&sub_id=20&flid=239879" -O data.pdf import io import re import pandas as pd import pd…
import datetime import time import pandas as pd import requests from bs4 import BeautifulSoup from tqdm.notebook import tqdm headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" } url = "https:/…
!pip install pdfplumber !apt install libmagickwand-dev ghostscript !wget "https://www.city.kumamoto.jp/common/UploadFileDsp.aspx?c_id=5&id=4638&sub_id=20&flid=239879" -O data.pdf import re import pandas as pd import pdfplumber tate = [0, 3…
qiita.com !pip install camelot !pip install pikepdf import camelot import pandas as pd import pikepdf # 保護解除 with pikepdf.open("data.pdf") as pdf: pdf.save("output.pdf") # strip_textで空白改行を除去 tables = camelot.read_pdf("output.pd…
stackoverflow.com !pip install pikepdf import pikepdf with pikepdf.open("data.pdf") as pdf: pdf.save("output.pdf")
# 空ファイル作成 ssh sudo raspi-config sudo apt install avahi-daemon sudo systemctl enable avahi-daemon sudo systemctl start avahi-daemon # ユーザー名追加 sudo adduser imabari # sudoに追加 sudo gpasswd -a imabari sudo #リブート sudo reboot…
oku.edu.mie-u.ac.jp 練習でplotlyでグラフ化してみた import pandas as pd pd.options.plotting.backend = "plotly" df = pd.read_csv( "https://oku.edu.mie-u.ac.jp/~okumura/python/data/height.csv", index_col=0 ) fig = df[["男17歳", "男16歳", "男1…
# スクレイピング import datetime import requests from bs4 import BeautifulSoup headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko" } def fetch_soup(url, parser="html.parser"): r = requests.get(…
soramame.env.go.jp import pathlib import pandas as pd pd.options.plotting.backend = "plotly" df = pd.read_csv( "https://soramame.env.go.jp/data/sokutei/NoudoTime/38201030/7day.csv", dtype={ "SO2": float, "NO": float, "NO2": float, "NOX": f…
import cv2 import numpy as np from google.colab.patches import cv2_imshow from PIL import Image from staticmap import StaticMap def get_map( url, lat=33.84167, lng=132.76611, width=2000, height=2000, zoom=12, fn="map.png" ): smap = StaticM…
qiita.com import cv2 import numpy as np from google.colab.patches import cv2_imshow from PIL import Image from staticmap import StaticMap def get_map( url, lat=33.84167, lng=132.76611, width=2000, height=2000, zoom=12, fn="map.png" ): smap…
import cv2 import numpy as np from PIL import Image from staticmap import StaticMap def get_map( url, lat=33.84167, lng=132.76611, width=2000, height=2000, zoom=12, fn="map.png" ): smap = StaticMap(width, height, url_template=url) img = sm…
geonlp.ex.nii.ac.jp 環境設定 !apt install libmecab-dev mecab-ipadic-utf8 libboost-all-dev !apt install libgdal-dev !pip install pygeonlp !pip install gdal !pip install jageocoder !python -m jageocoder install-dictionary 逆ジオコーディング …
github.com nlp100.github.io
bosailiteracy.org www.kokudo.or.jp www.geospatial.jp geoshape.ex.nii.ac.jp