Skip to content

Lesson Contribution - Dates as Data & Exporting Data Episodes #136

@Talishask

Description

@Talishask

I'm a member of The Carpentries staff and I'm submitting this issue on behalf of another member of the community. In most cases, I won't be able to follow up or provide more details other than what I'm providing below.


Episode: Dates as Data

I would suggest moving the text under Historical data to the Excel's date systems pin in the Dates stored as integers section. This would eliminate the Historical Data Section. I believe having the explanations of both date systems (1900 and 1904) in the same section of the episode makes the lesson flow better. Alternatively, some more context could be added to the Historical Data section, with the possibility of moving the explanation of the two date systems to that section.

  • This is the text that I am referring to: "Excel is unable to parse dates from before 1899-12-31, and will thus leave these untouched. If you're mixing historic data from before and after this date, Excel will translate only the post-1900 dates into its internal format, thus resulting in mixed data. If you're working with historic data, be extremely careful with your dates!"

Under the Dates stored as integers section, there should be an explanation of how to handle adding years, months, and days together, as that can be more challenging than what is written. I think an explanation similar to that of the Ecology lesson could suffice:

  • First, extract the single entities (day, month, or year)
  • We can then add values to each
  • Finally, the complete data string is reconstructed using the Date( ) function.

Episode: Exporting Data

In the Exporting Data episode, there is little to no explanation of in what situations one would want to save a file as a TSV (tab separated values) file as opposed to a CSV file. Although CSV files are favored for interoperability purposes, there are situations where a researcher might want to consider using a TSV file. One possible explanation is given below.

  • Explanation: TSV files can be used for exporting and exchanging data among various databases. It can also be used to retrieve database data. TSV files are very efficient for programs such as JavaScript, Perl, or Python to process without losing any typing information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions