This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| def drive_download(drive, fid): | |
| MIMETYPES = { | |
| # Drive Document files as MS dox | |
| 'application/vnd.google-apps.document': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', | |
| # Drive Sheets files as MS Excel files. | |
| 'application/vnd.google-apps.spreadsheet': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', | |
| # Drive presentation as MS pptx | |
| 'application/vnd.google-apps.presentation': 'application/vnd.openxmlformats-officedocument.presentationml.presentation' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """This script is largely borrowed from https://github.com/open-mmlab/mmaction. | |
| """ | |
| import argparse | |
| import sys | |
| import os | |
| import os.path as osp | |
| import glob | |
| import fnmatch | |
| import random |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Code forked from https://www.kaggle.com/jagannathpatta/reading-json-data-getting-dataframe | |
| import pandas as pd | |
| import json | |
| def json_to_dataframe(file): | |
| f = open ( file , "r") | |
| data = json.loads(f.read()) #loading the json file. | |
| iid = [] | |
| tit = [] #Creating empty lists to store values. |