For python 3.8 try:
def f() -> "pd.Series[str]":
pass
or:
f_return_type = "pd.Series[str]"
def f() -> f_return_type:
pass
or # type: pd.Series[str]
for variables
More Related Contents:
- error when applying function to a series object
- Conditional Replace Pandas
- How to convert index of a pandas dataframe into a column
- Pandas filtering for multiple substrings in series
- Keep only date part when using pandas.to_datetime
- Strings in a DataFrame, but dtype is object
- Pandas: convert categories to numbers
- df.append() is not appending to the DataFrame
- Python: Pandas Series – Why use loc?
- Is there a simple way to change a column of yes/no to 1/0 in a Pandas dataframe?
- Combining two Series into a DataFrame in pandas
- Convert pandas Series to DataFrame
- Pandas selecting by label sometimes return Series, sometimes returns DataFrame
- Pandas: change data type of Series to String
- Pandas pd.Series.isin performance with set versus array
- how do I calculate a rolling idxmax
- Remove name, dtype from pandas output of dataframe or series
- Convert pandas data frame to series
- Finding the intersection between two series in Pandas
- What is the fastest and most efficient way to append rows to a DataFrame?
- Compute the running (cumulative) maximum for a series in pandas
- Getting a list of indices where pandas boolean series is True
- Using replace efficiently in pandas
- Convert Pandas series containing string to boolean
- Python Pandas iterate over rows and access column names
- Python Pandas : pandas.to_datetime() is switching day & month when day is less than 13
- Sorting a pandas series
- Difference between df[x], df[[x]], df[‘x’] , df[[‘x’]] and df.x
- Access to table objects on Webpage Using Python Selenium
- Most efficient way to sort an array into bins specified by an index array?