技術 プログラムpython [python]dfの特定項目から4分位数を算出する方法 PR 2024-11-13 2024-11-13 ## 特定項目から4分位数を算出する ## 以下ではscore項目から0,25%,50%, 75%, 100%の値を算出する df['score'].quantile([0, 0.25, 0.5, 0.75, 1.0]) > 0.00 0.0000 > 0.25 7.8958 > 0.50 14.4542 > 0.75 31.2750 > 1.00 512.3292 > Name: fare, dtype: float64
技術 【colabo】githubの内容をGoogle Colaboratoryで開く方法 URLの「github.com」部分を「colab.research.google.com/github」 とすると Google Cola...
技術 [python]特定フォルダに入っている.txtファイルを順番に読み込むコード import os # 読み込むフォルダのパスを指定 folder_path = '/Users/xxxxx/Documents/' # フ...
技術 [python]github-issueをapi経由でcsvファイル化する方法 import requests import pandas as pd def fetch_issues(owner, repo, toke...
技術 [bigquery]partitonテーブルの日別での作成時刻を取得するコード SELECT table_name, partition_id, total_rows, last_modified_time FROM d...