Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
関数があるとしましょう:
def testfunction (x): blablblaalbal return c[1]
今、まだマージしていない 2 つの異なるデータ フレームがあります。
x = [df1, df2]
2 つの c[1] 値を返す x に testfunction を適用するにはどうすればよいですか?
さらに、これら 2 つの c [1] 値を csv ドキュメントに保存したいと思います。
組み込みのマップ機能を使用する
y = map(testfunction, x)
これにより、関数testfunctionがすべてのアイテムに適用されx、結果のリストが返されます。
testfunction
x