mkdir -p code example
Example 1: mkdir - p linux
The -p flag will create nested directories, but only if they dont exist already.
For example, suppose you have a directory /foo that you have write permissions for.
mkdir -p /foo/bar/baz # creates bar and baz within bar under existing /foo
It is also an idempotent operation, because if you run the same command over again, you will not get an error, but nothing will be created.
Example 2: mkdir
sudo mkdir /usr/local/sbin
what that dose is make a new file at /usr/local/sbin
Example 3: mkdir
sudo mkdir /usr/local/sbin
what that dose is make a new file at /usr/local/sbin
name = "Page Financials" ; year_of_est ="2014"
print("Company name: %s. \nYear of establishment: %s." %(name, year_of_est))
import pandas as ap
data = ap.DataFrame({"a":a, "b":b})
print(data)
string.ascii_lowercase #print_all_lower_case_of_alphabet
ascii_letters = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz'
ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
digits = '0123456789'
hexdigits = '0123456789abcdefABCDEF'
octdigits = '01234567'
printable = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c'
punctuation = '!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'
whitespace = ' \t\n\r\x0b\x0c'
pip install ...
min_length = 2
name = input('Please enter your name:')
while not(len(name) >= min_length and name.isprintable() and name.isalpha()):
name = input('Please enter your name:')
print('Hello, {0}'.format(name))
from functools import reduce
import operator
pd.DataFrame() ... to create a data frame
time.perf_counter() ... Time counter
import ta ...Technical indicator
## PANDAS_TA CONTAINING 133 INDICATORS
import pandas as pd
import pandas_ta as ta
df = pd.DataFrame()
df.ta.indicators()