Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Uploading small amounts of data into memory

#open() method to obtain a file object
#The open() function accepts the filename and an access mode.

with open("/content/drive/My Drive/Site sharing/PSD Resources/Colors.txt", 'r') as open_file:
  print('content of the file :
' , open_file.read())   #read(15)

#The entire dataset is loaded from the library into free memory
#the loading process will fail if your system lacks sufficient memory to hold the dataset.
#When this problem occurs, you need to consider other techniques for working with the dataset, such as streaming it or sampling it
Source by kadamjay.rf.gd #
 
PREVIOUS NEXT
Tagged: #Uploading #small #amounts #data #memory
ADD COMMENT
Topic
Name
9+3 =