We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccda986 commit 65f6ce4Copy full SHA for 65f6ce4
pymove/utils/trajectories.py
@@ -144,8 +144,8 @@ def flatten_dict(
144
--------
145
>>> from pymove.utils.trajectories import flatten_dict
146
>>> d = {'a': 1, 'b': {'c': 2, 'd': 3}}
147
- >>> d
148
- {'a': 1, 'b': {'c': 2, 'd': 3}}
+ >>> flatten_dict(d)
+ {'a': 1, 'b_c': 2, 'b_d': 3}
149
"""
150
if not isinstance(d, dict):
151
return {parent_key: d}
0 commit comments