Skip to content

Commit 6d9a7e9

Browse files
authored
fix: remove rogue "t" in ColumnNotFoundError (#1398)
* remove rogue "t" in ColumnNotFoundError * drive-by: readme
1 parent 1dbf057 commit 6d9a7e9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,6 @@ to this list!
122122

123123
Narwhals has been featured in several talks, podcasts, and blog posts:
124124

125-
- [The Real Python Podcast](https://www.youtube.com/watch?v=w5DFZbFYzCM)
126-
Narwhals: Expanding DataFrame Compatibility Between Libraries
127-
128125
- [Talk Python to me Podcast](https://youtu.be/FSH7BZ0tuE0)
129126
Ahoy, Narwhals are bridging the data science APIs
130127

@@ -137,6 +134,9 @@ Narwhals has been featured in several talks, podcasts, and blog posts:
137134
- [Sample Space Podcast | probabl](https://youtu.be/8hYdq4sWbbQ?si=WG0QP1CZ6gkFf18b)
138135
How Narwhals has many end users ... that never use it directly. - Marco Gorelli
139136

137+
- [The Real Python Podcast](https://www.youtube.com/watch?v=w5DFZbFYzCM)
138+
Narwhals: Expanding DataFrame Compatibility Between Libraries
139+
140140
- [Pycon Lithuania](https://www.youtube.com/watch?v=-mdx7Cn6_6E)
141141
Marco Gorelli - DataFrame interoperatiblity - what's been achieved, and what comes next?
142142

narwhals/_polars/dataframe.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ def func(*args: Any, **kwargs: Any) -> Any:
8989
getattr(self._native_frame, attr)(*args, **kwargs)
9090
)
9191
except pl.exceptions.ColumnNotFoundError as e:
92-
msg = (
93-
f"t {e!s}\n\nHint: Did you mean one of these columns: {self.columns}?"
94-
)
92+
msg = f"{e!s}\n\nHint: Did you mean one of these columns: {self.columns}?"
9593
raise ColumnNotFoundError(msg) from e
9694
except TypeError as e:
9795
e_str = str(e)

0 commit comments

Comments
 (0)