Setting formatting of date format in console and debugger views

Hi,

I am working with EU datetime objects in pandas dataframes - so expect string representations to be formatted as dd.mm.yyyy

I can import and manipulate the dates fine. However, despite having my system (Mac 10.15.7) set correctly Pycharm doesn't seem to respect this when viewing data. 

I've tried setting the Date Format explicitly under preferences and again it makes no difference.

 

For the console output I guess it's purely and internal Python/Pandas thing - so nothing to do with Pycharm, but for the debugger watch window I'd expect the date setting to be respected?

Thanks


Richard

 

0

Hi, 

Unfortunately datetime formatting in SciView is not implemented at the moment. To change the default format, you must do it from code, e.g.

df.index = df.index.strftime('%d/%m/%Y')

Please feel free to submit a feature request to https://youtrack.jetbrains.com/ to implement custom datetime formatting for SciView.

Also, somewhat related issue: https://youtrack.jetbrains.com/issue/PY-25291

0

请先登录再写评论。