Skip to content

Commit

Permalink
code sample for pandas-dev#35518
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjayhawkins committed Dec 20, 2020
1 parent 26f8033 commit 8d3a176
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions bisect/35518.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import pandas as pd

print(pd.__version__)

df = pd.DataFrame([["orig1", "orig2"]])

tup = ("new1", "new2")

result = df.apply(func=lambda col: tup)
print(result)

expected = pd.Series([tup, tup])

import pandas.testing as tm

tm.assert_series_equal(result, expected)

0 comments on commit 8d3a176

Please sign in to comment.