A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/6609 below:

string match returns NaN on non strings · Issue #6609 · pandas-dev/pandas · GitHub

Or just not respecting na flag.

In [44]: s = pd.Series(['a', 0, np.nan])

In [45]: s.str.contains('a', na=False)
Out[45]:
0     True
1    False
2    False
dtype: bool

In [46]: s.str.match('a', na=False)
Out[46]:
0    True
1     NaN
2     NaN
dtype: object

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4