GoogleスタイルやNumPyスタイルの記述時にはExamplesに記載する。 docstringについては過去の記事を参考にしてもらいたい。 [自身の記事] [Python] docstringのスタイルと書き方 """ >>> func(arg1, arg2) # 実行する関数とその引数(具体値) value # 期待される戻り値(具体値) """ テストコー...
ライブラリの形をなすために Pythonではsetup.pyを書いてrootディレクトリに置いておけばライブラリになる。 今回はこんな感じ。 fromsetuptoolsimportfind_packages,setupdeps=["pandas","pyarrow"]gcp_deps=["google-cloud-storage>=2.6.0","google-cloud-bigquery","pyarrow"]test_requires=["pytest"...