pytrends: related_topics() example

Syntax

pytrends.related_topics()

related_topics() example

from pytrends.request import TrendReq

# Keywords
kw_list = ["python list"]

# pytrends
pytrends = TrendReq()

# build_payload
pytrends.build_payload(kw_list)

# related_topics
pytrends.related_topics()

# Print
print(pytrends.related_topics())


Output:

{'python list': {'rising':     value formattedValue  ...          topic_title            topic_type
0   22550       Breakout  ...              PyTorch  Computer application
1    4650        +4,650%  ...   Visual Studio Code                 Topic
2     800          +800%  ...           TensorFlow              Software
3     550          +550%  ...                Conda       Package manager
4     350          +350%  ...               pandas              Software
5     350          +350%  ...          Giant panda                Animal
6     350          +350%  ...      Project Jupyter                 Topic
7     200          +200%  ...               Docker              Software
8     190          +190%  ...               Column              Database
9     190          +190%  ...               Series           Mathematics
10    160          +160%  ...             Data set                 Topic
11    150          +150%  ...                  Row              Database
12    150          +150%  ...     Return statement                 Topic
13    140          +140%  ...                  NaN                 Topic
14    130          +130%  ...             Anaconda   Python distribution
15    110          +110%  ...  Amazon Web Services               Company
16    110          +110%  ...                 loop                 Topic
17    100          +100%  ...            Amazon S3     Internet protocol
18     90           +90%  ...         scikit-learn              Software
19     90           +90%  ...                 YAML  Programming language
20     90           +90%  ...           Complexity                 Topic
21     90           +90%  ...      Time complexity                 Topic
22     90           +90%  ...             Selenium              Software
23     80           +80%  ...               GitHub    Software developer
24     70           +70%  ...  Amazon Web Services                 Topic

[25 rows x 6 columns], 'top':     value formattedValue  ...           topic_title            topic_type
0     100            100  ...                Python  Programming language
1      90             90  ...                  List    Abstract data type
2      14             14  ...                String      Computer science
3      10             10  ...     Associative array                 Topic
4       8              8  ...  Array data structure                 Topic
5       7              7  ...         Computer file                 Topic
6       6              6  ...        Database index                 Topic
7       6              6  ...              For loop                 Topic
8       6              6  ...     Sorting algorithm                 Topic
9       6              6  ...                 Value      Computer science
10      6              6  ...              Function                 Topic
11      5              5  ...                Append                 Topic
12      5              5  ...                pandas              Software
13      5              5  ...               Element                 Topic
14      5              5  ...                 Tuple                 Topic
15      4              4  ...                Object      Computer science
16      4              4  ...                Column              Database
17      4              4  ...                 NumPy              Software
18      3              3  ...  Religious conversion                 Topic
19      3              3  ...    List comprehension                 Topic
20      3              3  ...                  Data                 Topic
21      3              3  ...               Integer      Computer science
22      3              3  ...              Variable      Computer science
23      3              3  ...             Directory             Computing
24      3              3  ...              Printing       Visual art form

[25 rows x 7 columns]}}