Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
M mdf_reader
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 10
    • Issues 10
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • iregon
  • mdf_reader
  • Issues
  • #13

Closed
Open
Created Apr 30, 2020 by iregon@iregonMaintainer

Not scaping a scape sign...

internal_delimiter=as in properties

We sometimes need to write with the csv.QUOTE_NONE: probably to write empty stuff, but in the end we didn't need this....or did we?

Also see conection with the quoting issue in one of the files!!!

section_buffer=StringIO() pd.Series(r"""1300 10 \F15 02""").to_csv(section_buffer,header=False, encoding = 'utf-8',index = False) pd.Series(r"""1300 10 \F15 02""").to_csv(section_buffer,header=False, encoding = 'utf-8',index = False,quoting=csv.QUOTE_NONE,escapechar='\',sep=internal_delimiter) pd.Series(r"""1300 10 \F*15 02""").to_csv(section_buffer,header=False, encoding = 'utf-8',index = False,quoting=csv.QUOTE_NONE,escapechar=internal_delimiter,sep=internal_delimiter) section_buffer.seek(0) 0 pd.read_fwf(section_buffer,widths=[7,4,2,6],header=None,escapechar='\',encoding='utf-8') 0 1 2 3 0 1300 10 \F 15 02 1 1300 10 \ F15 0 2 1300 10 \F *15 02 section_buffer.seek(0) 0 pd.read_fwf(section_buffer,widths=[7,4,2,6],header=None,escapechar=internal_delimiter,encoding='utf-8') 0 1 2 3 0 1300 10 \F 15 02 1 1300 10 \ F15 0 2 1300 10 \F *15 02

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking