1import pandas as pd
2import googletrans
3from googletrans import Translator
4
5pd.set_option('max_colwidth', 300)
6
7
8# how to get the supported language and their corresponing code
9lang_df = pd.DataFrame.from_dict(googletrans.LANGUAGES, orient='index', columns=['Language'])
10lang_df
11