Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more flexibility in the var= << operator #525

Closed
edublancas opened this issue May 26, 2023 · 0 comments · Fixed by #609
Closed

more flexibility in the var= << operator #525

edublancas opened this issue May 26, 2023 · 0 comments · Fixed by #609
Assignees

Comments

@edublancas
Copy link

edublancas commented May 26, 2023

in #501 var= << was introduced to print the data frame while assigning it. However, it's too strict and we should allow other versions to have the same effect. Essentially, we should ignore the space surrounding the =, just like f-strings in Python:【 code pythoh 】

In [4]: x = 'hello'

In [5]: f"{x=}"

Out[5]: "x='hello'"

In [6]: f"{x =}"

Out[6]: "x ='hello'"

In [7]: f"{x = }"

Out[7]: "x = 'hello'"

In [8]: f"{x}"

Out[8]: 'hello'

In [9]: f"{x = }"

Out[9]: "x = 'hello'"

【 end code 】

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants