Python_cheatsheet_ds Flashcards
1
Q
ch 1
A
- Zip folders from terminalImport shutil
shutil.make_archive(‘medaffairs_backend_argenx’, ‘zip’, ‘/home/ec2-user/medical-insight-argenx/backend/’)
2. Read pickle files with open('passages_text_list.p', 'rb') as f: x = pkl.load(f)
3. String of list to list from ast import literal_eval literal_eval('[1.23, 2.34]')
2
Q
File transfer between EC2 using scp
A
https://www.bornfight.com/blog/transferring-files-between-local-machine-and-aws-instance/
3
Q
IDM
A
user access