Screen shot autosave
windows + PrintScreen
This command autosaves the current screen shot into C:\Users\cheng\Pictures\Screenshots
Screen shot autosave
windows + PrintScreen
This command autosaves the current screen shot into C:\Users\cheng\Pictures\Screenshots
Moment for Gaussian distributed variable
check path validation
if not os.path.exists(OUTPUT_FILE_PATH):
os.makedirs(OUTPUT_FILE_PATH)
if verbose:
print('Path: {0} created'.format(OUTPUT_FILE_PATH))
\\
before numberrow.names
argument also can be number denoting which column to be used as index
data <- read.csv('homework05.csv', header = TRUE, row.names = c('DATE'))
file_name = 'file_name.csv'
tickers_info = pd.read_csv(file_name,
sep = ",", # ',' for csv file and '\t' for text file
header = 0, # row number used as head
usecols=[1, 2], # column index to be included
index_col = [0], # column index which apdated above
engine='c') # c engine is faster than python
<object data="http://yoursite.com/the.pdf" type="application/pdf" width="700px" height="700px">
<embed src="http://yoursite.com/the.pdf">
<p>This browser does not support PDFs. Please download the PDF to view it: <a href="http://yoursite.com/the.pdf">Download PDF</a>.</p>
</embed>
*args pass a list of values or variables
**kwarg(key words arguments) pass a dictionary
def test_args_kwargs(arg1, arg2, arg3):
print("arg1:", arg1)
print("arg2:", arg2)
print("arg3:", arg3)
# test *args
$ cmd.exe # to change to windows cmd
$ wsl.exe # to change to wsl ubuntu terminal