Skip to content

Commit

Permalink
fix bug in dataframe.from_records method with str index and empty ite…
Browse files Browse the repository at this point in the history
…rable issue pandas-dev#47285
  • Loading branch information
Kelvingandhi committed Jun 12, 2022
1 parent 8c273a1 commit 48960d4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pandas/tests/io/formats/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,5 @@ def test_info_int_columns():
def test_info_from_rec():
# GH47285
df = DataFrame.from_records([], index="foo")
print(df.info())
#buf = StringIO()
#df.info(buf=buf)
buf = StringIO()
df.info(buf=buf)

0 comments on commit 48960d4

Please sign in to comment.