Hey ChatGPT, Automate These Tasks Using Python
Using AI to plot graphs, send emails/messages, and do web scraping in a few seconds.
Recently ChatGPT was released. This is an AI chatbot developed by OpenAI that specializes in dialogue. Its goal is to make AI systems more natural to interact with, but it can also help you when writing code.
You can make ChatGPT your coding assistant or even go beyond that!
I’ve been playing with ChatGPT a bit over the past few days. Here are some tasks I gave ChatGPT ordered by difficulty (spoiler alert: I was amazed at the results)
Task #1: Plot a linear regression
If you want to plot a linear regression, you can simply tell ChatGPT:
plot a linear regression with Python using matplotlib
We can be very specific by telling ChatGPT the library it should use, otherwise, it’ll choose itself.
Here’s the Python code created by ChatGPT (with comments included!)
import matplotlib.pyplot as plt
import numpy…