I am running the below code:
db = pymysql.connect(host=host, database=db_name, user=user, password=password)
batchsize = 100
for offset in range(0,1000,batchsize):
df = pd.read_sql(('SELECT * FROM anime LIMIT %s OFFSET %s', (batchsize,offset)), con=db)
print("rows and columns: ",df.shape)
But it is throwing the following error in line 4:
can't concat tuple to bytes
Any suggestion is welcome.