René's URL Explorer Experiment


Title: Issue parsing dates · Issue #53 · seatable/seatable-api-python · GitHub

Open Graph Title: Issue parsing dates · Issue #53 · seatable/seatable-api-python

X Title: Issue parsing dates · Issue #53 · seatable/seatable-api-python

Description: Hi! Reading date columns throws multiple warnings. Consider the following table with a couple empty (None) rows: my_date 0 2021-12-01T00:00:00Z 1 2021-12-01T00:00:00Z 2 None 3 None 4 None Fetching the my_date column throws two types of w...

Open Graph Description: Hi! Reading date columns throws multiple warnings. Consider the following table with a couple empty (None) rows: my_date 0 2021-12-01T00:00:00Z 1 2021-12-01T00:00:00Z 2 None 3 None 4 None Fetching ...

X Description: Hi! Reading date columns throws multiple warnings. Consider the following table with a couple empty (None) rows: my_date 0 2021-12-01T00:00:00Z 1 2021-12-01T00:00:00Z 2 None 3 None 4 None Fetching ...

Opengraph URL: https://github.com/seatable/seatable-api-python/issues/53

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issue parsing dates","articleBody":"Hi! Reading `date` columns throws multiple warnings. \r\n\r\nConsider the following table with a couple empty (`None`) rows:\r\n\r\n```\r\n                my_date\r\n0  2021-12-01T00:00:00Z\r\n1  2021-12-01T00:00:00Z\r\n2                  None\r\n3                  None\r\n4                  None\r\n```\r\n\r\nFetching the `my_date` column throws two types of warnings:\r\n\r\n```python\r\n\u003e\u003e\u003e base.query('SELECT my_date FROM MyTable')\r\n[Warning] format date: Invalid isoformat string: '2021-12-01T00:00:00Z'\r\n[Warning] format date: Invalid isoformat string: '2021-12-01T00:00:00Z'\r\n[Warning] format date: fromisoformat: argument must be str\r\n[Warning] format date: fromisoformat: argument must be str\r\n[Warning] format date: fromisoformat: argument must be str\r\n\r\n[{'my_date': '2021-12-01T00:00:00Z'},\r\n {'my_date': '2021-12-01T00:00:00Z'},\r\n {'my_date': None},\r\n {'my_date': None},\r\n {'my_date': None}]\r\n```\r\n\r\n1. Invalid isoformat string:\r\n\r\nThe culprit for this appears to be this line:\r\n\r\nhttps://github.com/seatable/seatable-api-python/blob/992214166a8b52b6838ffcb9f3ae184731448227/seatable_api/utils.py#L139 \r\n\r\nApparently, `datetime.fromisoformat` does not like the trailing `Z` (see [this](https://stackoverflow.com/questions/19654578/python-utc-datetime-objects-iso-format-doesnt-include-z-zulu-or-zero-offset) post on stack overflow): \r\n\r\n2. Argument must be a str:\r\n\r\nThe problem here is that the same try/except block as above does not cater for empty rows. \r\n\r\nThese issues are obviously not show stoppers but since each row will cause a warning (that can't be suppressed because it's a `print` statement) this becomes really annoying for longer tables. \r\n\r\nOn a general note: Is that implicit (re-)formatting strictly necessary? For example, I'm typically converting data into `pandas` data frames anyway and `pandas.to_datetime()` has no issues with the full string - even parses the correct time zone:\r\n\r\n```python\r\n\u003e\u003e\u003e pd.to_datetime('2021-12-01T00:00:00Z')\r\nTimestamp('2021-12-01 00:00:00+0000', tz='UTC')\r\n```\r\n\r\nFYI: This is with `seatable_api` version `2.5.1`.\r\n\r\nI also have a separate question on writing dates to SeaTable: I've tried writing a timestamp back to the table (via batch update) and it appears as if for iso-formatted strings (e.g. `2021-12-01T11:00:05Z`) the date is correct ingested but the time is dropped. Can you tell me what the expected format is?\r\n\r\nThanks,\r\nPhilipp","author":{"url":"https://github.com/schlegelp","@type":"Person","name":"schlegelp"},"datePublished":"2021-12-14T16:08:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/53/seatable-api-python/issues/53"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:16ca1253-e79e-c33d-28b8-f435a11bf801
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8CDC:182BE3:3D903C:554FD3:6A5A4CF2
html-safe-nonce3b144e234c37fa0ed18eb4d7e234bbad7760544d41069d12782a77ff7cde2722
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0RDOjE4MkJFMzozRDkwM0M6NTU0RkQzOjZBNUE0Q0YyIiwidmlzaXRvcl9pZCI6IjMzNTQzNTAzODE3MTU1NzQwMDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac68959bafab11cf69adbc3e789061988e5d83c7561fdb0fd639d24ae274c40824
hovercard-subject-tagissue:1079943610
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/seatable/seatable-api-python/53/issue_layout
twitter:imagehttps://opengraph.githubassets.com/94462c6fd22e1d8f76818efd6acca9ecd18e0d366c325ac3fbf48b316f65c3b2/seatable/seatable-api-python/issues/53
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/94462c6fd22e1d8f76818efd6acca9ecd18e0d366c325ac3fbf48b316f65c3b2/seatable/seatable-api-python/issues/53
og:image:altHi! Reading date columns throws multiple warnings. Consider the following table with a couple empty (None) rows: my_date 0 2021-12-01T00:00:00Z 1 2021-12-01T00:00:00Z 2 None 3 None 4 None Fetching ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameschlegelp
hostnamegithub.com
expected-hostnamegithub.com
Nonea793cd1fa898929111edad5857ee1f24ecf4bf7702525e67357cabc9df136fc3
turbo-cache-controlno-preview
go-importgithub.com/seatable/seatable-api-python git https://github.com/seatable/seatable-api-python.git
octolytics-dimension-user_id55628275
octolytics-dimension-user_loginseatable
octolytics-dimension-repository_id230085244
octolytics-dimension-repository_nwoseatable/seatable-api-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id230085244
octolytics-dimension-repository_network_root_nwoseatable/seatable-api-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release311929384671aa49f385b6fcc680ae3933943203
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/seatable/seatable-api-python/issues/53#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fseatable%2Fseatable-api-python%2Fissues%2F53
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fseatable%2Fseatable-api-python%2Fissues%2F53
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=seatable%2Fseatable-api-python
Reloadhttps://github.com/seatable/seatable-api-python/issues/53
Reloadhttps://github.com/seatable/seatable-api-python/issues/53
Reloadhttps://github.com/seatable/seatable-api-python/issues/53
Please reload this pagehttps://github.com/seatable/seatable-api-python/issues/53
seatable https://github.com/seatable
seatable-api-pythonhttps://github.com/seatable/seatable-api-python
Notifications https://github.com/login?return_to=%2Fseatable%2Fseatable-api-python
Fork 8 https://github.com/login?return_to=%2Fseatable%2Fseatable-api-python
Star 19 https://github.com/login?return_to=%2Fseatable%2Fseatable-api-python
Code https://github.com/seatable/seatable-api-python
Issues 7 https://github.com/seatable/seatable-api-python/issues
Pull requests 6 https://github.com/seatable/seatable-api-python/pulls
Actions https://github.com/seatable/seatable-api-python/actions
Projects https://github.com/seatable/seatable-api-python/projects
Security and quality 0 https://github.com/seatable/seatable-api-python/security
Insights https://github.com/seatable/seatable-api-python/pulse
Code https://github.com/seatable/seatable-api-python
Issues https://github.com/seatable/seatable-api-python/issues
Pull requests https://github.com/seatable/seatable-api-python/pulls
Actions https://github.com/seatable/seatable-api-python/actions
Projects https://github.com/seatable/seatable-api-python/projects
Security and quality https://github.com/seatable/seatable-api-python/security
Insights https://github.com/seatable/seatable-api-python/pulse
Issue parsing dateshttps://github.com/seatable/seatable-api-python/issues/53#top
https://github.com/schlegelp
schlegelphttps://github.com/schlegelp
on Dec 14, 2021https://github.com/seatable/seatable-api-python/issues/53#issue-1079943610
seatable-api-python/seatable_api/utils.pyhttps://github.com/seatable/seatable-api-python/blob/992214166a8b52b6838ffcb9f3ae184731448227/seatable_api/utils.py#L139
9922141https://github.com/seatable/seatable-api-python/commit/992214166a8b52b6838ffcb9f3ae184731448227
thishttps://stackoverflow.com/questions/19654578/python-utc-datetime-objects-iso-format-doesnt-include-z-zulu-or-zero-offset
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.