With a minimum of three observations, at least several days apart, it is possible to establish the "orbit elements" and predict the appearance of future returns of the comet (if any). Many comets appear only once. Those are the ones with hyperbolic rather than elliptical orbits.