AnkitAhlawat7742 commented on issue #49920:
URL: https://github.com/apache/arrow/issues/49920#issuecomment-4385147103

   Thanks for sharing the link ,
   After investigating pandas-dev/pandas#65429, the issue is clear — since 
`freq` is now I**ndex-only state**, `expected = df[["a"]]` creates an 
independent `DatetimeIndex` with its own `freq=<Day>`. Setting `df.index.freq = 
None has` no effect on` expected.index`. The fix is to set `expected.index.freq 
= None` instead. I have tested this locally and it passes.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to