Comments (6)
Good input, however, coercing to POSIXct
also unintentionally adds a time zone to the date, which means the date potentially no longer is the same. It also adds details (hour) that isn't originally there. One way is to coerce to UTC, but I'm not sure it's optimal.
Example (europe):
Sys.Date() %>% as.POSIXct()
## Returns: 2019-04-22 02:00:00 CEST
I think a warning could be a better approach?
from featuretoolsr.
if the user table contains a date column with 10000+ values the R session can be treated as frozen. So, the warning doesn't actually help but definitely is much better than a quiet problem
from featuretoolsr.
I've been thinking about this issue along with a few more of the open ones. I think you're bringing up a fair point, but I don't want to forcibly change user values. On the other hand, if it makes the R session unusable we should adress it forcibly..
What do think about adding support for this through a option-toggle (default on package load: on)?
Something along the lines of:
# Loads on package attach
options(
featuretoolsR.force_posixct = T, #default
featuretoolsR.posixct_tz = "UTC" #default
)
Runs something like this on entityset creation:
if(getOption("featuretoolsR.force_posixct")) {
.cols = lapply(df, class)
for (i in 1:length(.cols)) {
colname <- names(.cols)[i]
coltype <- .cols[[colname]]
if (any(coltype == "Date")) {
df[,colname] <- as.POSIXct(df[,colname], getOption("featuretoolsR.posixct_tz"))
}
}
}
from featuretoolsr.
I added something like this to the current development-branch (990b40e). Feel free to try it out.
from featuretoolsr.
Sorry, I don't feel I can help here
from featuretoolsr.
Resolved in #17
from featuretoolsr.
Related Issues (20)
- distributed.core annoying messages when n_jobs > 1 HOT 2
- Error in py_call_impl(callable, dots$args, dots$keywords) HOT 4
- Fix DESCRIPTION HOT 1
- Add tidy support for colnames HOT 2
- Reload R-session after featuretools installation HOT 5
- featuretoolsR::add_relationship new signiture HOT 2
- cutoff time in index of dfs() HOT 5
- Ensure pip and virtualenv exists HOT 3
- Update README HOT 1
- The tidy_feature_matrix throws a conversion error HOT 1
- Existing primitives are not found HOT 1
- Is there a way to use es$plot() ? HOT 2
- Suggestion: add autonormalize HOT 2
- library("featuretoolsR") error HOT 3
- Any plans to support categorical-encoding?
- Readme demo no longer works? Unable to add relationship because child variable is also its index HOT 1
- Can't create an entity set: AttributeError: 'EntitySet' object has no attribute 'entity_from_dataframe' HOT 2
- add_relationship signature HOT 1
- tidy_feature_matrix error: column `value` must be... HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from featuretoolsr.