1
こちらの記事を応用してStringIOにDataFrameをto_csv()すれば出来ると思われます。
Writing A Pandas DataFrame To A Disk File Or A Buffer
Example - To write a pandas DataFrame into a text buffer:
This Python example passes an instance of a text stream like StringIO() to write the DataFrame as a CSV into the in-memory text buffer.
from io import StringIO
textStream = StringIO();
y3....
1
コメントで紹介した記事3つで出来ているようです。だいたい2種類の方法になるでしょう。
virtualenvで分離独立したPython環境を作成し、そのフォルダ全体を配布する
How can I bundle Python 3.x to my Electron App that uses ReactJs?
You can bundle everthing using. Innosetup.
You can use Standalone - Portable Winpython.
回答が承認済みになっているので、上記で解決したものと思われます。
Portable Winpythonのリンク先を読むと、おそらくvirtualenvで1つのフォルダ配下に分離独立したPython環境を作成しているものと思われます。
...
1
0x82と言うのはすでにのす等の SJIS 表現の第1バイトですから、保存されたファイルがUTF-8になっていないようです。
使用しているエディターの設定や保存時の指定を見直して、確実にUTF-8として保存してやり直してみてください。
この投稿は @OOPer さんのコメントなどを元に編集し、コミュニティWikiとして投稿しました。
上位に投票された、最小文字数のコミュニティ wiki 以外の回答のみが対象となります
関連するタグ
flask × 57python × 50
python3 × 16
heroku × 8
python-requests × 4
html × 3
json × 3
mongodb × 3
sqlalchemy × 3
javascript × 2
mysql × 2
django × 2
nginx × 2
url-routing × 2
jquery × 1
macos × 1
apache × 1
api × 1
vscode × 1
opencv × 1
vue.js × 1
postgresql × 1
tensorflow × 1
raspberry-pi × 1
firebase × 1