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)
Fama MacBeth 2nd StageHello: I am a relatively new user of Stata. I have calculated the firm Betas for the first stage o…
PSmatch2Using psmatch2 How to do 2:1 nearest neighbour. How to keep only matched cases. The option: keep if …
equality of regression coefficientsI am currently attempting to estimate the relationship between writing improvement (Y) and feedback …
R Loop To get Survey Weighted Counts Code: input person status group angle weight 1 2 3 30 152 2 3 2 29 176 3 2 6 20 146 4 3 6 30 194 5…
macros in variable nameshi, suppose i have a variables named x1 x2 x3 ....x2000 and had set the following local macro and …
Subscribe to:
Post Comments (Atom)
0 Response to Warning: Not all pandas column names were valid Stata variable names (Python)
Post a Comment