What is the use of DOT in Python?
Usage of dots in python is necessary because dot notation tells python to look inside the space that is before the dot for code to execute. You can use dot notation to access the specific version of a certain function that is defined in a different class or a different module
example: dataframe.head()
Python2 v3
print ("hello")
=
""" many lines"""
+=
float = 1.0
float(7)/2
python 3 print
assigning
""" can string
make many line """
not sure what it is yet
floating is
to return deimals
data frame basics
c
dataframe_name[:10]
dataframe_name.head()
len(dataframe_name)
abs(insert number)
float = 1.0
float(7)/2
list the first 10
show head list of dataframe
get the length of the dataframe
get absolute number
not sure what it is yet
floating is
to return deimals
Video watched: https://pythonprogramming.net/python-3-os-module/
We are talking about Python standard library
This module comes with the installation of python
"The main purpose of the OS module is to interact with your operating system. The primary use I find for it is to create folders, remove folders, move folders, and sometimes change the working directory. You can also access the names of files within a file path by doing listdir()."
os practice code
import os #import os
curDir = os.getcwd()#find out where we are/ urrent working directory
print(curDir) #output our current location
##can also reate diretory
os.mkdir('nnewDir') #this will make a new dir in your urrent location
import time #import time operation, just incase it happens too fast and we miss it
time.sleep(2) #sleep for 2 sec
os.rename('nnewDir', 'newDir2') #'original name', 'new changed name'
#remove directory
time.sleep(2)
#os.rmdir('newDir2')
help(os) #get help
notes: UUID is universally unique identify number