Skip to content

Read an ODS/CSV file and return list of start and end indexes as json

#1 (closed) Read an ODS/CSV file where it contains columns as year, month, story no, start page, end page,and return a nested dict Parameters:

  • filename (str): The path to the ODS/CSV file. Returns:
   "year": {
      "month" : {
         "story_1" : {
                "start page" : 20,
                "end page" : 50
            },
         "story_2" : {
             "start page" : 20,
             "end page" : 50
        },
      }   
  }
Edited by PradeepKumar Thota

Merge request reports

Loading