"Carruthers" is a short story by Diana Wynne Jones
Synopsis
Elizabeth's father is cleaning out Granny's attic and comes across a walking stick. Elizabeth feeds it chocolate and rice pudding and talks to it, and Carruthers stays with her for several years, finally leaving in a spectacular fashion.
It is in two short story collections: Warlock At The Wheel: And Other Stories and Unexpected Magic.