2019-03-01から1ヶ月間の記事一覧
エラー > firebase serve === Serving from '/sample'... Error: An unexpected error has occurred. 解決策 sudoをつければ良い > sudo firebase serve
pandasのデータをcsv形式にして保存するときに、 indexを含めないようにする方法。 以下のように、 index引数をFalseにすれば良い。 df.to_csv("test.csv", index=False)
tailメソッドを用いる。 引数に先頭から何番目の要素を取り出すかを指定する df.tail(1)
headメソッドを用いれば良い。 引数に先頭から何番目の要素かを指定 df.head(1)
エラー === Deploying to 'test'... i deploying functions, hosting i functions: ensuring necessary APIs are enabled... ✔ functions: all necessary APIs are enabled i functions: preparing functions directory for uploading... Error: Error parsi…
pandasのデータを単純に逆順にする方法 df.iloc[::-1]
ipythonを起動したら自動的に読み込んでくれるファイルの場所は ~/.ipython/profile_default/startup/00-test.pyといった形で書く。 辞書順に読み込むため、番号で管理するとわかりやすい 例えば、test.py import sys, os import readline import json impor…
npm install -g @vue/cli npm install -g @vue/cli-init
公式のgithubのドキュメントを参考に https://github.com/creationix/nvm#install-script mkdir ~/.nvm curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash .bashrc等に以下のように記述 export NVM_DIR="${XDG_CONFIG_H…
スライドを動画にしたい時に使える画面録画. SimpleScreenRecorderが使える. インストール方法は簡単で, sudo apt install simplescreenrecorder 後はアプリ一覧からSimpleScreenRecorderを検索すれば良い.
結論から言うと\displaystyleを使えばできるようです. 例 $$ \begin{eqnarray} y = {\displaystyle \sum_{x \in X }}x \end{eqnarray} $$ $$ \begin{eqnarray} y = {\displaystyle \sum\_{x \in X }}x \end{eqnarray} $$