Animate an object by moving it according to a list of coordinates
Assuming you have csv file with row like:

1.2,2.4,2.0
2.2,2.8,2.4


and assuming the requirement is to animate the ball with a constant frame interval between each of the coordinate set in csv, here is the code snippet:

import bpy
import csv
from mathutils import Vector

csvPath = '/path/to/the/csv'

#Not the most efficient way of creating a mesh , but should be fine for just one object
bpy.ops.mesh.primitive_uv_sphere_add(size=1)
ball = bpy.context.object

startFrame = 1
increment = 5 #This can also be in the csv
newFrame = startFrame

with open(csvPath) as csvFile:
    reader = csv.reader(csvFile, delimiter=',')
    for row in reader:
        #First set the location and then insert key frame
        ball.location = Vector([float(r) for r in row])
        ball.keyframe_insert(data_path='location', frame = newFrame)
        newFrame += increment

#Set the end of animation, if needed
bpy.context.scene.frame_end = newFrame