Green’s Dictionary of Slang

gandy dancer n.

[railroad jargon gandy dancer, one who works in a railroad maintenance crew; ult. the Gandy Mfg. Co., maker of railroad repair equipment. Such workers might spend their unemployed time tramping the country]
(US)

1. a petty crook, a tramp.

[US]N.Y. Trib. 25 Nov. 9/3: He also learned to gamble and became a ‘gandy dancer.’ A gandy dancer is a non-working inhabitant of railway construction camps who lives by an ability to ‘stack’ cards or ‘trim’ opponents with loaded dice.
[US]G. Milburn ‘The Dealer Gets It All’ in Hobo’s Hornbook 151: While some gandy-dancer warbled ‘The Wabash Cannon-Ball’.
[US]‘Boxcar Bertha’ Sister of the Road (1975) 9: Tales of the gandy dancers, and of the bindle stiffs [...] and the rides on the blinds.
[US]S. Longstreet Decade 349: Some clod-hopper or lumber-worker or gandy dancer [...] would eat crow.
[US]Goldin et al. DAUL 77/1: Gandy dancer. A cheap crook.

2. a jitterbug.

[US]Life 21 Sept. 44: Last week the nation’s needle nuts and gandy-dancers (jitterbugs) were cut to the quick [etc.] [HDAS].
[US]P. Crump Burn, Killer, Burn! 319: Three silk-shirted, reefer-high Mexican gandy dancers [...] strumming imaginary guitars.