-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] econometrics\load macrodata
Cannot format dates properly to set the index.
#4713
Comments
change type to string on year column |
@tehcoderer changing |
Convert the date to a string. An integer does not have a decimal, so you must have converted to a float first. |
The dataset was loaded with If you find any more issues, please ping me and I will fix them as soon as I can. |
Fixed in #4848 👍 |
yeah had to convert to int then str for it to work when I tested today lol. |
Fixed in #4848 |
If you load one of the sample data sets in the Econometrics menu, for this example it is
macrodata
, the column foryear
is formatted as an abbreviated integer in thousands.type macrodata.year --format date
then converts them all to0.000
.It would be a reasonable argument to make that
type --format date
is not sufficient for converting these values. This should convert to aDatetimeIndex
and allow for the desired formatting of the date and time.With the inability to correct this, you can't set the index and it essentially becomes impossible to do any meaningful analysis or calculations. Furthermore, upon loading any data set, it should automatically find the column titled,
date
oryear
/month
and format the DataFrame appropriately.The text was updated successfully, but these errors were encountered: