format a date in csv file as dd-mmm-yyyy format - csv

I have a basic question regarding date formatting. I have date as
1-Jan-00
which needs to be reformatted as 01-Jan-2000.
I tried to use the format cells as well as text function feature. But when I reopen the file as .csv file, the changes are lost. Can I kindly get help in making the changes permanent? I have to keep it as .csv file, that's my main requirement.
Help is greatly appreciated.

A CSV file is specifically a content-only formatting-free data format. You can put 1-Jan-00 or 01-Jan-2000 or 2000-Jan-01 or whatever you want into your file. How your program will interpret and/or display that data depends on the program.

Related

How to Read CSV file using Power Automate?

I have added CSV file to SharePoint Documents library.
I needs to read that CSV file using Power Automate / Flow.
I have created Power Automate flow. Below is the screenshot fro the same.
Which CSV parser do i need to use for read data from file content action?
Can anyone help me for the same?
Thanks
If you want to retrieve the content of the CSV without a premium connector you could use an expression to convert the $content property of the Get File Content action into a string value. You can use the base64tostring function for this.
Below is an example
base64tostring(outputs('Get_file_content')?['body']['$content'])

Read a flat file in Pentaho Spoon and then export it's metadata into a CSV

I am wondering if it is possible to extract the metadata of a flat file in a CSV using Pentaho Spoon. What I mean by that is for example get a CSV file input step, choose the file you want to read and then somehow get access to the metadata of that file and export it into a CSV.
I found on the documentation a step called Metadata Structured that was introduced in 3.1.0 but I can't find it in the latest version of Spoon, maybe it got removed by now.
Update: I found the "Metadata structure of stream" that almost does what I need to be done. Right now my transformation looks like this: csv file input -> metadata structure of stream -> text file ouput. The problem is that it doesnt extract all the metadata. It doesn't extract Format, Decimal and Group. It also gets me an Origin column that I don't really need and I have to get rid of it.
Update2: I keep trying to get to those columns that are missing but the problem is that the Metadata structure of stream step only outputs these columns "Position,Fieldname,Comments,Type,Length,Precision,Origin" so I cannot really access the format column for example that is an input for the step :( I can't really find a work-around for this

Tableau isn't converting my csv data source to tables

When I import a csv to Tableau, it gets the same format of the original csv file (a single column with every label on it). How can I make Tableau separate the columns based on commas?
I can't see why this is happening, since in every tutorial I checked Tableau already converts the .csv to a tabular format.
Here's what I get
Note: I'm using Tableau's trial version.
Sometimes when you open a csv in Excel it can mess with the formatting like your image shows. If you think you opened it in Excel before connecting, try downloading your source again and connecting first with Tableau. If that doesn't work, I happen to have this dataset in a .tde if you would like to use that. vgsales.tde
Edit: Thinking regional settings might be a factor.
Click the dropdown on the right of the data source. Select Text File Properties
To get this window:
Can you match these settings?

Top row blank in xlsx import into MS-Access

I have a collection of MS-Excel datasets in both .xlsx and .csv that get updated regularly.During an update, I save them to my C drive and convert the .csv files as .xlsx. Following this, I import them into MS-Access for processing.
However, I've a tedious issue, which I think is related to the previous file format before the conversion, but not entirely sure:
Every time I import the collection to MS-Access, some of the tables have an extra blank row added to the top of the table, which can interfere with some of the processes I run.
Now, it would appear that the files that were originally .xlsx are the ones that have this extra row, while the files that were originally .csv and then converted do not have this problem.
I can't give a reproducible example due to data sensitivity, but I'd like to ask if there is any general solution to this issue?
Help is greatly appreciated.
Thanks

Chrome extension how to append or edit a csv file on pc

I am able to find some information on how to read a csv file on a computer but is there any way I can modify one? In my chrome extension I need to add data to each row one at a time after scraping some websites. Is there any better way then read csv, store data as variable and rewrite is everytime? This becomes problematic when the file gets large. I am looking for a way to “append ” to a existing file or a work around. Any suggestions appreciated.
Update: From comment I see it is not possible to read from file system. But is there anyway to read from within the extension directory? How should I do so if the csv file is included with in the zip file of the extension? Can I access them somehow? Code snippets would be helpful.
I'm in the middle of creating something which might help you. Right now you can upload the CSV file and append a "modifier". You can adjust the code according to your requirement. Here's the repo https://github.com/amanrOnly/CSV_Modifier