Monday, 23 January 2023

Python Directories

 #!/usr/bin/python
import os

# Create a directory "test"
os.mkdir("test")

 

#!/usr/bin/python
import os

# This would give location of the current directory
os.getcwd() 


#!/usr/bin/python
import os

# Changing a directory to "/home/newdir"
os.chdir("/home/newdir")


#!/usr/bin/python
import os

# This would  remove "/tmp/test"  directory.
os.rmdir( "test"  )

DBT - Models

Models are where your developers spend most of their time within a dbt environment. Models are primarily written as a select statement and ...