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)
Merging variables into one variable after rehapingHi everyone, this is my first post to Statalist so I kindly request some patience as well as welcome…
Defining Pseudo PanelHi All, I am currently using the world bank enterprise survey data for my PhD research. This is fir…
Tabout export tables to word/csvI am trying to export a frequency table generated by tab2 or tabout. Code: local var a b c d e f …
Displaying v values on xtline graphlocal y_title = "MIT Rate (%)" local x_title = "YearGroup" local title = "Top Marginal Income Tax Ra…
Syntax for a mixed-effect repeated measures modelDear Statalisters, I am trying to implement a mixed-effet repeated measures model that was describe…
Subscribe to:
Post Comments (Atom)
0 Response to Warning: Not all pandas column names were valid Stata variable names (Python)
Post a Comment