How can I convert '?' to NaN

file converter
video converter
file converter download
convert pdf to word
file converter to mp3
any video converter

I have a dataset and there are missing values which are encoded as ?. My problem is how can I change the missing values, ?, to NaN? So I can drop any row with NaN. Can I just use .replace() ?

Use replace:

 df = df.replace('?', np.nan)

How to convert any file to any format, Let's start with a simple example: convert 3 km to m (3 kilometers to meters). There are 1000 m in 1 km, so the conversion is easy, but let's follow a system. The  You can find metric conversion tables for SI units, as well as English units, currency, and other data. Type in unit symbols, abbreviations, or full names for units of length, area, mass, pressure, and other types.

You can also read the data initially by passing df = pd.read_csv('filename',na_values = '?') It will automatically replace '?' to NaN

How to Safely Convert From One Unit to Another, When you convert your profile to a Page: You'll have both a profile and a Page after conversion. We'll transfer your profile picture and cover photo to the Page  Conversion Calculator. Use this Conversion Calculator to convert between commonly used units. Select the current unit in the left column, the desired unit in the right column, and enter a value in the left column to generate the resulting conversion.

If you want to drop the row which contain '?', you do not need to change '?' to 'NaN'


How do I convert my profile to a Facebook Page?, Just drag and drop an image file into the tool above, then download the converted file. Use the tool again to convert another image file, signing in to download it. Convert is a free and easy to use unit conversion program that will convert the most popular units of distance, temperature, volume, time, speed, mass, power, density, pressure, energy, and many others, including the ability to create custom conversions!

You can also do like this,

df[df == '?'] = np.nan

Convert JPG to PDF online for free, Convert HTML pages to PDF. Learn how to turn any web page — or multiple web pages — into a PDF document with the Acrobat PDF converter tool  Converting an Image to JPG in macOS. Mac comes pre-installed with Preview, which you can use for more than just viewing image files. It’s a great image editing program capable of cropping, resizing, and converting files. To open an image in Preview, select it in Finder, hit the Spacebar, and then click the “Open with Preview” button.

HTML to PDF, how to convert HTML to PDF, Convert PDF to Excel absolutely for free. Manage documents directly in your web browser. No signups or downloads required! Our PDF to Excel converter  You can convert a PDF file, for example, into a doc or docx file, into a bmp, jpg, gif, or png file, etc. In our case, we’ll choose JPG from the list. Now type in your email address and click the Convert button. That’s about it! You should get an email a few minutes with a link to your converted file.

Convert PDF to Excel Online for FREE, Convert Audio CD content and transfer to a mobile device: Click Media Converter and select Audio CD to Mobile Device. Insert the disc and select your drive from  How can I convert many images into a movie? I have about 12000 images, and I want to create a movie based on the timestamps of the images. The timestamp is also the filename. I tried using convert

Customer Support, Converting BMP, GIF, PNG or other image types to a JPG file, and what software to use. You can use fold to break the text up and then feed it to pr. Both are most likely available in your system. If this is the file lorem.txt: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Integer malesuada nunc vel risus commodo viverra maecenas accumsan lacus.