Skip to content
Advertisement

Python Telegram Bot – Calling variable in URL?

am having difficulty calling a variable as part of the url in a message I intend to send via the Python Telegram bot. Due to the nature of my code, the ‘webpage’ variable varies and the url has to be called as a variable. Placing the `url’ variable in curly brackets did not work and some searching online has been

How to convert a dataframe to nested json

I have this DataFrame: All the dataframe fields are ASCII strings and is the output from a SQL query (pd.read_sql_query) so the line to create the dataframe above may not be quite right. And I wish the final JSON output to be in the form I realize that may not be ‘normal’ JSON but that is the format expected by

Advertisement