v-crn Code Log

主に備忘録

2020-12-01から1ヶ月間の記事一覧

Debian で R の環境構築

R

1. 依存関係のインストール sudo apt install dirmngr --install-recommends sudo apt install software-properties-common sudo apt install apt-transport-https 2. R のインストール sudo apt-key adv --keyserver keys.gnupg.net --recv-key 'E19F5F8712…

Creating Revision Error: Revision 'PROJECT_NAME' is not ready and cannot serve traffic. [Google Cloud Run]

# Problem Cloud Run デプロイ時に次のようなエラーメッセージがコンソールに表示された. ERROR: (gcloud.beta.run.deploy) Revision 'hoge-fuga-service-jgah' is not ready and cannot serve traffic. ローカルで動作確認済み プロジェクト内のファイルに…

pandas.DataFrame.agg() における SpecificationError: nested renamer is not supported

Code df.agg({'feature': ['mean', 'count', 'std', 'median', 'skew']}) Error Message SpecificationError: nested renamer is not supported Solution df.feature.agg(['mean', 'count', 'std', 'median', 'skew']) Ref. python - Solution for Specifica…