Last active
June 22, 2024 19:39
-
-
Save bswck/2766881fdbecf3ad0c39ed4f35b96a98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
x = pd.DataFrame() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def pasted_function() -> None: | |
print("Hello world!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from codewriter import Code, Import, Variable | |
code = Code() | |
pd = Import("pandas", alias="pd") | |
x = Variable("x") | |
x.value = pd.DataFrame() | |
code.write(x) | |
print(code) | |
######################### | |
code = Code() | |
def pasted_function() -> None: | |
print("Hello world!") | |
code.paste(pasted_function) | |
print(code) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment