You can pass a keyword argument containing a whitespace to a function like this: >>> foo(**{"the argument": 1}) Useful when adding columns with pd.DataFrame.assign()
0
1
2
0
0