[Thread Prev][Thread Next][Index]
[ferret_users] extra characters not expected with list/format="comma"
Hi ferreters,
I don't know if this issue has already been reported but in case it was
not the case, I describe the problem.
When you list some texts with the qualifier /format="comma" into a file,
you get 2 extra white space at the end that need extra processing to beremoved when one uses python/pandas dataframe reading for example.
Otherwise you get a last column name as df['bbb '] rather than df['bbb']
in my example.
yes? list/nohead/norowlab/format="comma"/file=file.csv/clobber "aaa", "bbb"
LISTing to file file.csv
yes? spawn od -c file.csv
0000000 " a a a " , " b b b " \n
0000016
Notice the \n after 2 white space characters.
Those extra characters do not appear if the the /format="comma" qualifier
is not used.
yes? list/nohead/norowlab/file=file.csv/clobber "aaa", "bbb"
LISTing to file file.csv
yes? spawn od -c file.csv
0000000 " a a a " " b b b " \n
0000015
Tested with last 7.0 ferret release
Regards
Patrick
--
Data Analysis and Visualization Engineer
LSCE/IPSL, CEA-CNRS-UVSQ laboratory
LSCE - Climate and Environment Sciences Laboratory
IPSL - Institut Pierre Simon Laplace
--
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement