CLN: eliminate depr warnings on 3.4

parital on #7131

CLN: make chunksize an integer in  to_csv to avoid float slicing semantics
CLN: make nxes integers in _get_layout