Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-18130

Problem with documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Documentation
    • None

    Description

      On this page
      https://arrow.apache.org/docs/python/timestamps.html

      There is a code
      pdf = pd.DataFrame(

      {'naive': [datetime(2019, 1, 1, 0)], 'aware': [Timestamp(year=2019, month=1, day=1, nanosecond=500, tz=timezone(timedelta(hours=-8)))]}

      )

      which definitely creates a timestamps of 2019-01-01, but one line after it goes the output:

      pdf
      naive aware
      0 2018-10-01 2018-10-01 00:00:00.000000500-08:00

      How it can be 2018-10-01? This is definitely wrong.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ibobak Ihor Bobak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: