Skip to content

Commit

Permalink
change dict merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Tagar committed Feb 18, 2018
1 parent 663a68d commit bb589ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions abalon/spark/pivoter.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ def BasicSparkPivoter (df, all_vars=None):
'''

def simple_merge_two_dicts(x, y, agg_op):
x.update(y) # modifies x with y's keys and values & returns None
return x
z = x.copy()
z.update(y) # modifies x with y's keys and values & returns None
return z

return pivot_df(df, simple_merge_two_dicts, all_vars)

Expand Down
2 changes: 1 addition & 1 deletion abalon/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

version = '2.2.3'
version = '2.2.4'


0 comments on commit bb589ed

Please sign in to comment.