You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish I could use Pandas to get the information provided by DataFrame.info() in a more usable format. For example, this function currently prints a table describing each column in the DataFrame, info on Index, memory usage, etc. However, since this information is returned as string, it is difficult to use downstream. Perhaps we could add a flag like return_info set to False by default, but when True would return a dictionary containing the above information.
I suppose you could either gather all the information manually by calling other functions and then make the JSON yourself. Or you could parse the string output of .info().
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Thanks for the feature request. It seems readily achievable to create the this in a simple function. Even better, that would give you full control over what is collected (so you could collect more or less depending on your use case). An alternative would be to vendor the code here:
Uh oh!
There was an error while loading. Please reload this page.
Feature Type
Adding new functionality to pandas
Changing existing functionality in pandas
Removing existing functionality in pandas
Problem Description
I wish I could use Pandas to get the information provided by DataFrame.info() in a more usable format. For example, this function currently prints a table describing each column in the DataFrame, info on Index, memory usage, etc. However, since this information is returned as string, it is difficult to use downstream. Perhaps we could add a flag like
return_info
set to False by default, but when True would return a dictionary containing the above information.Feature Description
Alternative Solutions
I suppose you could either gather all the information manually by calling other functions and then make the JSON yourself. Or you could parse the string output of .info().
Additional Context
No response
The text was updated successfully, but these errors were encountered: