Skip to content

Commit

Permalink
Fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-rdurrani committed Jun 25, 2024
1 parent 7990b2a commit 501875b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/snowflake/snowpark/modin/plugin/docstrings/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,23 +903,23 @@ def assign():
>>> df = pd.DataFrame({'temp_c': [17.0, 25.0]},
... index=['Portland', 'Berkeley'])
>>> df
temp_c
temp_c
Portland 17.0
Berkeley 25.0
>>> df.assign(temp_f=lambda x: x.temp_c * 9 / 5 + 32)
temp_c temp_f
temp_c temp_f
Portland 17.0 62.6
Berkeley 25.0 77.0
>>> df.assign(temp_f=df['temp_c'] * 9 / 5 + 32)
temp_c temp_f
temp_c temp_f
Portland 17.0 62.6
Berkeley 25.0 77.0
>>> df.assign(temp_f=lambda x: x['temp_c'] * 9 / 5 + 32,
temp_k=lambda x: (x['temp_f'] + 459.67) * 5 / 9)
temp_c temp_f temp_k
... temp_k=lambda x: (x['temp_f'] + 459.67) * 5 / 9)
temp_c temp_f temp_k
Portland 17.0 62.6 290.15
Berkeley 25.0 77.0 298.15
Expand Down

0 comments on commit 501875b

Please sign in to comment.