Skip to main content
Updated with examples from the online Mathematica documentation.
Source Link
GIM
  • 146
  • 4

I have experienced similar issues using the new Import function, which are only apparent when using specific column or row specifications, eg. {"Data",All,{1,3}}. The issues seem to relate to the use of

"HeaderLines" -> 1 

or

"SkipLines"-> 1 

The options do not work for me when importing directly from a file, versus the online Mathematica 11.2 documentation where the examples are using ImportString. For example from the documentation:

Import["ExampleData/financialtimeseries.csv", "Data","HeaderLines" -> 1] 

works. Also the following works:

Import["ExampleData/financialtimeseries.csv", {"Data", All, 2}] 

However adding the column specification and "HeaderLines" options together fails:

Import["ExampleData/financialtimeseries.csv", {"Data", All, 2},"HeaderLines" -> 1] 

I have experienced similar issues using the new Import function, which are only apparent when using specific column or row specifications, eg. {"Data",All,{1,3}}. The issues seem to relate to the use of

"HeaderLines" -> 1 

or

"SkipLines"-> 1 

The options do not work for me when importing directly from a file, versus the online Mathematica 11.2 documentation where the examples are using ImportString.

I have experienced similar issues using the new Import function, which are only apparent when using specific column or row specifications, eg. {"Data",All,{1,3}}. The issues seem to relate to the use of

"HeaderLines" -> 1 

or

"SkipLines"-> 1 

The options do not work for me when importing directly from a file, versus the online Mathematica 11.2 documentation where the examples are using ImportString. For example from the documentation:

Import["ExampleData/financialtimeseries.csv", "Data","HeaderLines" -> 1] 

works. Also the following works:

Import["ExampleData/financialtimeseries.csv", {"Data", All, 2}] 

However adding the column specification and "HeaderLines" options together fails:

Import["ExampleData/financialtimeseries.csv", {"Data", All, 2},"HeaderLines" -> 1] 
Source Link
GIM
  • 146
  • 4

I have experienced similar issues using the new Import function, which are only apparent when using specific column or row specifications, eg. {"Data",All,{1,3}}. The issues seem to relate to the use of

"HeaderLines" -> 1 

or

"SkipLines"-> 1 

The options do not work for me when importing directly from a file, versus the online Mathematica 11.2 documentation where the examples are using ImportString.