Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for pandas DataFrame

See original GitHub issue

Support for DataFrames, out of the box:

def test_foo(dataframe_regression):

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

nicoddemuscommented, Feb 13, 2020

What is the rationale for not supporting objects more generally? Could pickling be used to do the dumping/loading?

Not sure, pickle does not produce a human friendly representation, which is one of the points of the plugin.

But I see it being able to handle specific objects, such as attr-based classes for example.

nicoddemuscommented, Feb 13, 2020

Oh OK I think see what you mean: we would compare the “repr” of the objects, correct? It would really depend on how the objects implement their “repr” methods for that to be useful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pandas.DataFrame — pandas 1.5.2 documentation
Purely integer-location based indexing for selection by position. The index (row labels) of the DataFrame. Access a group of rows and columns by...
Read more >
pandas - Python Data Analysis Library
pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python...
Read more >
Indexing and selecting data — pandas 1.5.2 documentation
... order to support more explicit location based indexing. pandas now supports ... pandas aligns all AXES when setting Series and DataFrame from...
Read more >
Intro to data structures — pandas 1.5.2 documentation
DataFrame is a 2-dimensional labeled data structure with columns of potentially different types. You can think of it like a spreadsheet or SQL...
Read more >
Package overview — pandas 1.5.2 documentation - PyData |
Package overview#. pandas is a Python package providing fast, flexible, and expressive data structures designed to make working with “relational” or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found