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)
looping and creating tablesHello, I am trying to create multiple tables using looping for ptfidelity_1_ - ptfidelity_11_ below.…
Interpreting ivreg2 resultsDear Statlisters, Someone recommended me to run an ivreg2 on stata. However, I am quite new to the …
Interpolation of unbalanced panel dataDear all, I am currently working with unbalanced panel data which I need to prepare for regressions…
Replacing variable labels if same prefix, different suffixI have multiple sheets of excel that I import one by one into Stata. Each of the sheets has about 15…
F statistic (& testparm) after a clustered FEHello Question 1: If I am running this model: xtreg dv iv1 iv2 iv3 i.year cluster(country), fe a…
Subscribe to:
Post Comments (Atom)
0 Response to Warning: Not all pandas column names were valid Stata variable names (Python)
Post a Comment