Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

csv

Create a .csv file with values from a Python list

August 20, 2022 by Magenaut

I am trying to create a .csv file with the values from a Python list. When I print the values in the list they are all unicode (?), i.e. they look something like this

Categories Python, Q&A Tags csv, python, xlrd Leave a comment

How to add a new column to a CSV file?

August 20, 2022 by Magenaut

I have several CSV files that look like this:

Categories Python, Q&A Tags csv, python, python-3.x Leave a comment

How to read a file with a semi colon separator in pandas

August 20, 2022 by Magenaut

I a importing a .csv file in python with pandas.

Categories Python, Q&A Tags csv, pandas, python Leave a comment

How to write to a CSV line by line?

August 19, 2022 by Magenaut

I have data which is being accessed via http request and is sent back by the server in a comma separated format, I have the following code :

Categories Python, Q&A Tags csv, file, io, python, string Leave a comment

Skip rows during csv import pandas

August 19, 2022 by Magenaut

I’m trying to import a .csv file using pandas.read_csv(), however, I don’t want to import the 2nd row of the data file (the row with index = 1 for 0-indexing).

Categories Python, Q&A Tags csv, pandas, python, readfile Leave a comment

Change specific value in CSV file via Python

August 19, 2022 by Magenaut

I need a way to change the specific value of a column of a CSV file. For example I have this CSV file:

Categories Python, Q&A Tags csv, python Leave a comment

Python convert csv to xlsx

August 19, 2022 by Magenaut

In this post there is a Python example to convert from csv to xls.

Categories Python, Q&A Tags csv, excel, file, python, xlsx Leave a comment

What is the fastest way to upload a big csv file in notebook to work with python pandas?

August 19, 2022 by Magenaut

I’m trying to upload a csv file, which is 250MB. Basically 4 million rows and 6 columns of time series data (1min). The usual procedure is:

Categories Python, Q&A Tags csv, dataframe, pandas, python Leave a comment

How to get rid of “Unnamed: 0” column in a pandas DataFrame read in from CSV file?

August 19, 2022 by Magenaut

I have a situation wherein sometimes when I read a csv from df I get an unwanted index-like column named unnamed:0.

Categories Python, Q&A Tags csv, dataframe, pandas, python Leave a comment

How do I convert this list of dictionaries to a csv file?

August 19, 2022 by Magenaut

I have a list of dictionaries that looks something like this:

Categories Python, Q&A Tags csv, data-conversion, dictionary, python Leave a comment
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … Page15 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress