A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/10412 below:

setting a slice with datetime64 ignores datetime64 resolution · Issue #10412 · pandas-dev/pandas · GitHub

Resulting in 1970 datetimes when using eg datetime64[D] resolution (splitted from #10408):

In [46]: df=pd.DataFrame({'c':pd.Timestamp('2010-10-01')}, index=range(5))

In [47]: df
Out[47]:
           c
0 2010-10-01
1 2010-10-01
2 2010-10-01
3 2010-10-01
4 2010-10-01

In [48]: df.loc[0:2,'c'] = np.datetime64('2010-10-12')

In [49]: df
Out[49]:
                              c
0 1970-01-01 00:00:00.000014894
1 1970-01-01 00:00:00.000014894
2 1970-01-01 00:00:00.000014894
3 2010-10-01 00:00:00.000000000
4 2010-10-01 00:00:00.000000000

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4