This is the only simple solution that I found myself and is working like charm:
- Step 1: mount google drive normally:
```python
from google.colab import drive
drive.mount("/content/drive")
```
- Step 2: while saving or fetching data from shared drive:
_a) Writing Data to shared drive_
```python
!cp "//content/drive/Shareddrives/<shared_ drive_name>/my-video.mp4" "my-video.mp4"
```
_b) Reading data from Shared Drive_
```python
!cat /content/drive/Shareddrives/<shared_ drive_name>/example.txt
#or
pd.read_csv("/content/drive/Shareddrives/<shared_ drive_name>/data_example.csv")
```
_Note: If it did not work try to changing name of share drive without spaces_
This is the only simple solution that I found myself and is working like charm:
- Step 1: mount google drive normally:
```python
from google.colab import drive
drive.mount("/content/drive")
```
- Step 2: while saving or fetching data from shared drive:
_a) Writing Data to shared drive_
```python
!cp "//content/drive/Shareddrives/<shared_ drive_name>/my-video.mp4" "my-video.mp4"
```
_b) Reading data from Shared Drive_
```python
!cat /content/drive/Shareddrives/<shared_ drive_name>/example.txt
#or
pd.read_csv("/content/drive/Shareddrives/<shared_ drive_name>/data_example.csv")
```
_Note: If if it did not work try to changing name of share drive without spaces_