Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • IndentationError: python within stata

    Hi folks - I'm struggling with this indentation error but i've done everything to ensure the indentation is correct and I am still getting an error. Any help would be kindly appreciated.

    File "<stdin>", line 1
    for i in df.columns.tolist():
    ^
    IndentationError: expected an indented block after 'for' statement on line 1
    (14 lines skipped)
    Attached Files
    Last edited by Eva Gjergji; 07 Dec 2023, 13:59.

  • #2
    Originally posted by Eva Gjergji View Post
    . . . i've done everything to ensure the indentation is correct and I am still getting an error. Any help would be kindly appreciated.
    It's a bug and StataCorp is working on it. Explanation is here. Possibilities for (limited) workarounds are also mentioned elsewhere in that thread.

    Comment

    Working...
    X