while reading csv, use the parameter ‘na_values’.
pd.read_csv(”, na_values=”UN”)
More Related Contents:
- Convert pandas dataframe to NumPy array
- What is the difference between NaN and None?
- String concatenation of two pandas columns
- Strings in a DataFrame, but dtype is object
- Performance of Pandas apply vs np.vectorize to create new column from existing columns
- How to one-hot-encode from a pandas column containing a list?
- What does axis in pandas mean?
- FutureWarning: elementwise comparison failed; returning scalar, but in the future will perform elementwise comparison
- How to map numeric data into categories / bins in Pandas dataframe
- Find column name in pandas that matches an array
- Coalesce values from 2 columns into a single column in a pandas dataframe
- Pandas: Subtracting two date columns and the result being an integer
- Convert timedelta64[ns] column to seconds in Python Pandas DataFrame
- Select multiple ranges of columns in Pandas DataFrame
- ‘DataFrame’ object has no attribute ‘sort’
- Pandas pd.Series.isin performance with set versus array
- Difference between data type ‘datetime64[ns]’ and ‘
- python pandas flatten a dataframe to a list
- Precision lost while using read_csv in pandas
- Get week start date (Monday) from a date column in Python (pandas)?
- What is dtype(‘O’), in pandas?
- pandas distinction between str and object types
- NumPy version of “Exponential weighted moving average”, equivalent to pandas.ewm().mean()
- Python Pandas – Missing required dependencies [‘numpy’] 1
- Pandas: Difference between largest and smallest value within group
- What’s the best way to sum all values in a Pandas dataframe? [duplicate]
- Split Python sequence (time series/array) into subsequences with overlap
- Faster way to transform group with mean value in Pandas
- Add density curve on the histogram
- Numpy.dtype has the wrong size, try recompiling