Files that you create can be seen if you click “File -> Locate in Drive”. Or you can find the Colab Notebooks folder in your cloud storage.
In Colab, a special format for working with scripts is used—a notebook that consists of alternating blocks of code and text. To add code, you need to click the “+ Code” button, as shown in the picture. To add text, click “+ Text”. Text can be a description for the code or addition of various instructions.
To run the code, you need to click the button with the play icon. After execution, its result will be shown under the cell, and you will see a green checkmark if the code executed successfully.
In Colab, individual code cells can be rearranged using the arrow buttons.
And to upload a file, you need to click the button with the folder icon.
Then click the button with the file icon and select on your computer the file that you need to upload for work. Note that all uploaded files will disappear once the you close the session.
The uploaded file should appear in the file explorer panel on the left side of the screen (we have uploaded court_decisions.csv).
2 + 2
print('Hello')
import pandas as pd
court_decisions = pd.read_csv('/content/court_decisions.csv')
court_decisions.head()
Subscribe to our newsletter!
You will receive our monthly newsletter with the most relevant Russia-related research news
INSTITUTE FOR EUROPEAN, RUSSIAN, AND EURASIAN STUDIES
1957 E St., NW, Suite 412,
Washington, DC 20052