Hello, all,
I'm using Stata 17 to execute the command c_ml_stata, which makes use of Python in the background to run machine learning models. Though I can get results from my code, I do get the following text in red:
Not all pandas column names were valid Stata variable names.
The following replacements have been made:
0 -> _0
1 -> _1
2 -> _2
If this is not what you expect, please make sure you have Stata-compliant
column names in your DataFrame (strings only, max 32 characters, only
alphanumerics and underscores, no Stata reserved words)
warnings.warn(ws, InvalidColumnName)
How do I fix this issue with the InvalidColumnName? I just hate all that red text and don't want it to be saved to a log file with the output.
Thanks,
DDT
Related Posts with Warning: Not all pandas column names were valid Stata variable names (Python)
Running regression based on size each yearDear Experts, I have an unbalanced panel data of all NYSE, AMEX and NASDAQ firms from 1998 to 2018.…
Combining multi-item measuresHello, I have 10 variables that all measure how much an individual compares himself to society on a…
Robust Estimation - VAR modelHello all, How do I perform robust estimation in VAR to correct for presence of any heteroskedastic…
Calculating annual visit using visit dateHi there! I am a rather novice Stata user doing an MPH. I am using Stata 15 IC on Windows 10; my da…
generate varialbe on the conditionHi , I want to generate the variable only up the condition of another variable here, local 38"phon…
Subscribe to:
Post Comments (Atom)
0 Response to Warning: Not all pandas column names were valid Stata variable names (Python)
Post a Comment