Python_cheatsheet_ds Flashcards

1
Q

ch 1

A
  1. 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]')
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

File transfer between EC2 using scp

A

https://www.bornfight.com/blog/transferring-files-between-local-machine-and-aws-instance/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

IDM

A

user access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly